Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsI'm making a platformer type game but am having trouble with a walking animation. Instead of only playing when he is walking, it plays constantly. How to i fix it? and what codes do i use?
Any help would be appreciated.
and i know a lot of you are gonna call me lazy.. I'M NOT LAZY!! I'm just not sure of how to correctly do this. For you trolling, FUCK OFF! I'M TIRED OF YOUR SHIT!
But to you helpful people, thank you
...you made a platform game, but you dunno stop(); ?
sorry for my poor english
icitte c'est francais tabarnak!
well... if it's something else, I think it'd be hard to help without an fla
sorry for my poor english
icitte c'est francais tabarnak!
At 11/10/10 03:57 PM, offspringscott wrote: ...you made a platform game, but you dunno stop(); ?
i know the stop function...it's doesnt work that way though, it'll just play through the animation and stop and it won't do anything unless i restart flash
At 11/10/10 04:01 PM, spartan2744 wrote:At 11/10/10 03:57 PM, offspringscott wrote: ...you made a platform game, but you dunno stop(); ?i know the stop function...it's doesnt work that way though, it'll just play through the animation and stop and it won't do anything unless i restart flash
:Pesudo-code
if(character is walking && player.currentFrame != walkFrame){
player.gotoAndStop(walkFrame)
} else {
player.gotoAndStop(stand/idleFrame)
}
//"Character is walking" is a boolean, set to true once you hit the movement key, and is set to false once you release the key/press a different key.
//The best way I've found to SET UP your character is to put it in a mc (named,...player) and on each frame inside that mc there is another mc with the walking sequence mc on frame1, idle frame mc on frame 2...etc
Hope that helps
Pesudo-codeif(character is walking && player.currentFrame != walkFrame){
player.gotoAndStop(walkFrame)
} else {
player.gotoAndStop(stand/idleFrame)
}
Hope that helps
is that action script 3? It doesn't look familiar is why i'm asking
At 11/10/10 05:58 PM, spartan2744 wrote:Pesudo-codeif(character is walking && player.currentFrame != walkFrame){
player.gotoAndStop(walkFrame)
} else {
player.gotoAndStop(stand/idleFrame)
}is that action script 3? It doesn't look familiar is why i'm askingHope that helps
You should really go and learn the basics first. Really.
nobody
is that action script 3? It doesn't look familiar is why i'm askingYou should really go and learn the basics first. Really.
i already know the basics
Nope, it's AS2. Here's the same, but the bold parts are to be switched with code/variables you have set yourself
if(character is walking && player.currentFrame != walkFrame){
player.gotoAndStop(walkFrame)
} else {
player.gotoAndStop(stand/idleFrame)
}
For instance, the "stand/idleFrame" is the frame in which your character is standing still.
Conspiracy :O | Best story thread ever!
"I guess my kick made his penis explode since blood started gushing down his leg." - Stoptalking
It was pseudo-code: It isn't language specific.
:it was done with AS3 in mind, as far as I know that all the operators in that will work in either AS2 and AS3.
spartan2744, the answer is to use variables... and if statements.
check out this video.
http://www.youtube.com/watch?v=UTaV1qXur N0
Kanye West Did What??????
They should make a black guy the manager, they know how to run shit!
2 Girls 1 Cup .... THE SONG!!!!