[img ]http://puu.sh/q98wI/d2a586b169.gif[/img]
Yo! Beginner flash game maker here! I just started learning how to make a plat former and am able to successfully create a ground and jumping player. THEN I learned how to make an animated player with different animations for each action. I got it to work, but there are some problems. As in, things I don't know how to do.1.) I made a falling animation, but don't know how to use AS to trigger it. Is there a funtion for if(falling) or something?2.) I got my jumping animation to work, but it only works in one direction. Really stumped on this one, since I've experimented with the code for like a day now and just CAN'T get it to work in the other direction.3.) I don't know how to stop an animation from happening once the player releases the button so that the idle animation can be played. For example, if I run right in the game and stop, the running right animation will still continue to play. Is there a if (Key.isReleased(Key.Right) code I can use or something? If so, I could probably easily remedy this with a touchingGround instance right?So yeah, that's all I wanna do for now. Set up a properly working, animated character. THEN I'l get to all the V-cam, enemy, health-bar, wnning level, stuff. I'm even planning on incorporating rag-doll effects into it. :) If'n you guys need the code, just let me know. I'd appreciate the help. From what I've seen here, this is probably child's play for you guys.
"programming" languages
those quotes are confusing. it would have been fine without them, but now I don't know what you mean by it, because you've added them
actionscript is a superset of ecmascript, so it's definitely a programming language. but I'm not sure what kind of "things that aren't really programming languages" you mean, because you can't very well make a game with HTML or YAML or something
unity
AS... ActionScript? what version? 1.0, 2.0, or 3.0?
I know nothing about ActionScript, but if it's anything like other "programming" languages, you should be able to read the values of variables directly. One easy way to detect if the player character is falling is if their Y speed is non-zero (specifically, whichever way is down. In Game Maker, positive Y and vspeed values are down by default.) If this is a platformer with acceleration and momentum, rather than one where you just start and stop, you could have the idle animation trigger when the player's X speed is below a certain threshold. Hope this helps.
Wait...no freakin' way...you're developing STRAFE?! You're one of the guys involved in it?! Cause that looks VERY MUCH like Strafe!
Um...I think 3? I'm not sure. I'm experimenting in Macromedia Flash.
Thanks man! That should definitely work. Just gotta find a way to code it!
some people vary on how much they split hairs on the diff between "programming," "scripting," etc.