PDA

View Full Version : probably simple problem



keke
April 24th, 2006, 01:40 PM
hi i have

if (Key.isDown(Key.SPACE)) {
tellTarget ("/car") {gotoAndStop (2);}
}

and all i want is for it to go back to gotoAndStop (1) when space is released. I though it would be "Key.isUp" but obviously it isn't then i tried some on space release things and got all confused. Is there a simple way to solve this?

Joppe
April 24th, 2006, 01:48 PM
if(Key.isDown(Key.SPACE)){
_root.car.gotoAndStop(2);
}else{
_root.car.gotoAndStop(1);
}


Telltarget wha?

keke
April 24th, 2006, 07:33 PM
Thank you so much! also lol i only just started trying to do some coding on my own and not robbing the codes and i keep doing things harder ways obviously... atleast now i've learnt another new thing. thanks again :beam:

Joppe
April 25th, 2006, 12:37 PM
Yeah sure anytime. If you get in more trouble just post question here on the board (remember to search before =))