forums

TNT Basic Forums > Programming Q&A
in-code polygon changes
< Last Thread     Next Thread >
Author
Thread        Post A Reply

09-15-2003 20:00

Posted by:
WildBoar

Location:
Ohio

Find more posts by WildBoar

Can the map polygon parameters be updated from within the program code? I'd like to be able to move a polygon at certain times during the program.

09-16-2003 05:13

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

I don't think so, but you could just change the way you interpret the polygon instead. For example, you read if something is in map polygon x+shiftX and map polygon y+shiftY. Then if you change shiftX and shiftY, it would be the same as if the polygon had moved.

09-16-2003 14:34

Posted by:
WildBoar

Location:
Ohio

Find more posts by WildBoar

I figured you couldn't move them, so I used an 'invisible' sprite that is the same color as the background.

09-16-2003 22:42

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

to make a sprite invisible you can just set it transparent:

sprite 1,x,y,image
set sprite transparency 1,100

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.