PDA

View Full Version : Name a function


Clayf700
02-11-2010, 02:26 AM
OKAY HOW THE CRAP DO I DO THIS?!


case 38: // (my up arrow)
_vy = -20


I Want To give a name for that so i can do something like this:

case 38: // (up arrow again)
named ---> _vy = -20

I put in my name then make some code and how ever you make that function false (can you also tell me how that works too...)

anyways i hope you get it,
mabey later i could come up with a better way to phrase it but for now can someone please help me... thanks

Newbie101
02-12-2010, 04:01 PM
Wait.. What do you want exactly? You want somethng to move when hitting the up arrow? Please explain more and I could try and help you.

gumuruh
02-13-2010, 04:23 PM
hah?

i dont understand what u want.

Clayf700
02-14-2010, 03:28 AM
K, Let Me Rephrase the whole thing... lets say that pressing up gives me an action... like as soon as i press up something starts moving, i want to make it so that when you press something elese it stops, get it?

(much simpler)