| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| A simple Wall object question; Hopefully will be easy to answer? | |
|---|---|
| Tweet Topic Started: Aug 19 2006, 06:02 PM (253 Views) | |
| williac | Aug 19 2006, 06:02 PM Post #1 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
Im trying to load a level from a text file I have created with another program.![]() what I have is the x,y,x2, and y2, of each wall I want to place in the room. example of text file (should make a square room)
I am able to get GM to read the file, and using Blank wall objects(standard wall objects missing the creation event.) and then assign the proper x,y,x2,y2,ect to each previously created blank wall and run the CreateWall() function for each.
I also have each Blank wall drawing a line (GM function) between its x,y and its x2,y2. when I switch to the game maker view and make things visible. I can see that the lines created by the drawline() function looks like the level I am trying to create. ![]() but the wall drawn in the U3d aren't placed where I was expecting them to be. ![]() Ive struggled with this for awhile now. Its probably something simple that I have overlooked. Any help would be great thanks. WILLIAC |
![]() |
|
| Dr. Best | Aug 19 2006, 08:38 PM Post #2 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
May it be that the arguments for string_parse are wrong? I couldn't find this function in the GM help file but the second argument seems to be some kind of index and indices usually start with 0. |
![]() |
|
| williac | Aug 20 2006, 01:50 AM Post #3 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
string_parse is one of my own
I use it pretty often. if the string you where parsing is
the function call of would return apple would return two ect,ect I am getting the proper coordinates when I read the text file. I can tell because when I have the wall objects draw a line between their x,y coordinates and their x2,y2 coordinates it is correct. Im really confused as to why the walls in the U3d view arent drawn the way their coordinates would indicate. Im setting the x,y,x2,y2,hieght,and texture variables. I am really stuck on this. thanks for your quick response. I dont want to cut into your time since your developing U3d 2.0 and are most likely very busy. But if you have any Ideas let me know. Thanks WILLIAC |
![]() |
|
| williac | Aug 28 2006, 12:41 AM Post #4 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
I solved this. Instead of using U3D wall object to display the level I saved in a text file, I used U3D polygon objects. Works great now. U3D ROCKS!!!!!!!!!!! WILLIAC |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)






10:34 AM Jul 11