forums

TNT Basic Forums > Programming Q&A
How would you code angled tiles (ramps)?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

12-14-2003 01:22

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

I want to eventually use angled tile in a game, so that everything doesn't have to be a step to be jumped on. I've thought of a few methods to do this, but they all have their flaws - most of which were when you jump on an "angled" tile you'd end up floating and such.

Any ideas?

Thanks in advance!!!

12-14-2003 14:23

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

I don't know how old you are, but if you're old enough you've problably seen curves in maths... you know, y=[...]x[...]. For example:


( Adapt the code, it's probably nowhere near your own code )

if tile=5
y=x/2
end if

12-14-2003 19:27

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

God! If that works in my code I'll bash my head against the nearest wall. :)

I'll also look into curves to learn a bit. Thanks!!!

Thanks for the help!

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.