forums

TNT Basic Forums > Programming Q&A
Trouble w/Map Objects
< Last Thread     Next Thread >
Author
Thread        Post A Reply

07-24-2003 22:34

Posted by:
GameDev

Click Here to Email GameDev   Find more posts by GameDev

I am having trouble getting this rpocedure to work. I want it to read the map objects and place sprites and images accordingly.
--------------------------------------------
procedure LoadObjectsProc()
int num
for num=0 to map object count-1
if map object type(num)=1
paste image Map Object X(1),Map Object Y(1),001
end if
next num
end proc
--------------------------------------------
Currently, It will display the image at (0,0) instead of where the object is.

07-25-2003 02:29

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

quote:
paste image Map Object X(1),Map Object Y(1),001


I believe that Map Object X and Map Object Y are in tile coordinates; for example, object 1 is on tile 5,5.

Just multiply by the tile size

Paste image Map Object X(1)*map tile width, Map Object Y(1)*map tile height, 1

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.