Moving in 4 directions

Get help using Construct 2

Post » Sat Dec 14, 2013 4:22 pm

Good evening,
i would like to ask you guys if any of you had the same problem as mine.

I cannot figure out how i can move my sprite in only 4 directions, or to unfreeze the animation.

I went to the point where i can move left, right, up and down with changing graphics. When i hold righ + down (all combinations) it goes exactly there but the sprite is freezing.

Im attaching the screen.

I relly need your help guys.
Posts: 4
Reputation: 183

Post » Sat Dec 14, 2013 5:37 pm

To remove the freezing try this:
Borka223 from RecGames
Posts: 39
Reputation: 2,987

Post » Sat Dec 14, 2013 5:58 pm

8Direction movement already comes with with movment on direction. So why are you adding extra movement code? As I see it your 8Direction is never used. You should remove the move 1 pixel at angle X. then give your 8Direction an acceleration value say 1500.

so here is what is happening. Your not using 8 direction at all. *direction has it' own math to move the position values of the sprite. Instead your doing a
Onkeyboard then do move. Which has nothign to do with 8 Direction.
But since Keyboard works indenpendently of 8Direction. Pressing 2 direction keys at once will evaulate both to truee. and thus you will get diagnol movement.

that's why it's not working.

RecGames makes a good point. Is your animation walking? and is it set to loop?

Also have you done the first tutorial. Teaches the basic fundamentals or is this a muddle the way through? I found muddling very hard and had to work throught he first tutorials.
jayderyu2013-12-14 18:00:49
Posts: 2,457
Reputation: 15,177

Post » Sat Dec 14, 2013 6:06 pm

Now all my grpahics are reversed.

But thank you for help.


Fixed. Thank you very much. =)Gealach2013-12-14 18:09:05
Posts: 4
Reputation: 183

Return to How do I....?

Who is online

Users browsing this forum: fbarraza28, grigrizljac, rustomatic and 5 guests