Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-03-2008, 10:03 PM   #1
Pedal-kid
Registered User
 
Join Date: Jun 2008
Posts: 26
Red face hittest

I need help!! I am making a stickman game, and I got trouble with the hittest allready.. When the stickman hits the ground, flash is supposed to gotoAndStop frame 3 inside the Stickman MC.. But I when flash has played the "clip" inside frame 3 in the Stickman MC, I wont flash to go to another frame frame, and stop repeating the clip inside frame 3 in Stickman MC
plz download and help me
here is the download link
http://www.zshare.net/download/146491303ee1db5a/

And if you need the actionscript code;Here it is:
ActionScript Code:
onEnterFrame=function() { gravity=9; dude._y+=gravity; xspeed=4; if (dude.hitTest(ground)) { gravity=false; if (gravity==false) { dude.gotoAndStop(4); dude._y=ground._y-17; if (Key.isDown(Key.LEFT)) { dude._x-=xspeed; dude.gotoAndStop(3);} if (Key.isDown(Key.RIGHT)) { dude._x+=xspeed; dude.gotoAndStop(2); } } } }
Pedal-kid is offline   Reply With Quote
Old 07-04-2008, 04:06 AM   #2
peter5
Registered User
 
Join Date: Dec 2005
Posts: 101
Default

I am not trying to be anal, I do want to help, however I cannot understand what you are trying to say.

Take the time to re-read your question. You will get responses if you take the time to word your question well.
peter5 is offline   Reply With Quote
Old 07-04-2008, 07:06 PM   #3
Pedal-kid
Registered User
 
Join Date: Jun 2008
Posts: 26
Default

Quote:
Originally Posted by peter5 View Post
I am not trying to be anal, I do want to help, however I cannot understand what you are trying to say.

Take the time to re-read your question. You will get responses if you take the time to word your question well.
sorry, my english sucks... But I'll try to explain a little better this time..
ok.. When you have downloaded the file and pressed ctrl+Enter, you will se the stickman falling down, and when the he hits the ground, he bends over, and stands up again.. When you move him to the left and right with the arrows, you see that whenever you release the arrow key, he bends over and stands up again, what shall I do to make him stop doing that movement every time I release the arrow key? dont forget to download :P
Pedal-kid is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HitTest Nightmares! VinceT ActionScript 2.0 1 12-17-2008 02:06 AM
hitTest and keyboard key question David87 Gaming and Game Development 2 02-21-2008 04:07 PM
movieclip with a hittest??? vin23 Gaming and Game Development 2 09-06-2007 08:16 AM
hitTest returning true AND false for same coor ? Wheels ActionScript 2.0 6 01-09-2007 01:57 PM
Ye Olde hitTest Problem - revisited.... zantafio ActionScript 1.0 (and below) 5 05-16-2003 11:46 PM


All times are GMT. The time now is 05:37 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.