Pages: 1
Topic closed
I am making a fighting action but how do i make the action same when I make the character facing the opposite way so he can attack and jumping or any thing in both direction, I saw there is a tag for -direction of character- in the blue function for my sensing, can that help ? ps I am usin the chinese one so I am not sure what this is called in English.
Offline
changing the direction works if you are using the Move command
otherwise change X and Y values to define movement
Offline
The direction doesn't really work for games like this, because it would put the character upside-down. But here's how to fix that: Use the [point in direction: _] block, and for x movement, use move _ steps. For moving right, the direction should be 90; for left, it should be -90. (I think. Can someone verify that?) There is a button in the sprite pane that locks the sprite's direction to only left or right. If you click that button, the sprite should only face left or right, not spin. It looks like this I think: <-> (Can someone post the actual button? I'm on an iPod and can't. ) Then you can use the same script for left/right, just with the sprite facing a different direction.
Wow, wall of text. Hope that made sense.
Last edited by Harakou (2010-08-22 19:30:44)
Offline
If you look above the "Scripts", "Costumes" and "Sounds" tags, you'll see a little picture of the sprite. In that same rectangle it will have the sprite's x position, y position, direction, etc. This is also where you change a sprite's name. Look to the left, and you'll see 3 buttons: an arrow/circle, a line with to arrows, and a square. Click the middle button, and the Sprite will only be able to change its direction from left to right, and it won't flip. Hope that made sense.
Offline
Topic closed
Pages: 1