TNT Basic Forums > Programming Q&A
One more about sprites
< Last Thread     Next Thread >
Thread        Post A Reply

02-19-2003 00:41

Posted by:

Click Here to Email Simon   Find more posts by Simon

How do I use the keyboard to control sprites? It's probably not too hard but the only thing I can find for help on that is Tron. Thanx, again.

02-21-2003 22:08

Posted by:

Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

You can use:

If pressed ( key code )

or the shortcuts of some keys:

if space
if left
if right
if up
if down

the key codes are disponible at ( from the finder ) :

help center > TNT Basic help > Tutorial > Input


while not mouse button

if up then y=y-5
if down then y=y+5
if left then x=x-5
if right then x=x+5
sprite 1,x,y,0
draw frame


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.