# How do I fix my platformer?

Get help using Construct 2

### » Tue Jun 30, 2015 4:22 pm

Ok i created everything like in the tutorial for a platformer (except the snail enemy) and i modified it a bit to be a shooter. I split my character into a lower half (legs) and upper half (arms,gun and head) and I made it follow the mouse but when i tried to make the upper part not flip when it aimed left i couldn't find a way to do it and is there a way to make a restriction like if it aims to a certain angle that it can't go in that direction anymore and can someone explain angle becouse i don't know where it starts or if it's 90 where will it point at?
B
7
S
1
Posts: 6
Reputation: 435

### » Tue Jun 30, 2015 4:52 pm

Hello friend

Angles are quite simple once you get to understand it.
But basically if the angle is 0 it means it's going to the left. If it's 90º then it's downwards, 180º is right and 270º is upwards. So keep that in mind whenever you are drawing your sprites.

So if the sprite is following the mouse, it will turn 360º pointing to whatever direction the mouse is. I don't think that is quite a good idea to use this on the character of a platform game.
The most common thing to do is keep the character standing normally and use some type of target to follow the mouse around the screen.
But since I have no idea of what you're trying to do there, I can't explain much. But well...

I created a .capx about angles to help a guy on another post. You can take a look at it here:
https://dl.dropboxusercontent.com/u/183 ... otate.capx
B
17
S
7
Posts: 280
Reputation: 2,522

### » Sat Jul 04, 2015 2:22 pm

It doesn't matter I somehow got it, but thanks for telling me what angle points where!
B
7
S
1
Posts: 6
Reputation: 435

### » Sun Jul 05, 2015 2:29 am

Those angles are incorrect. Zero degrees is directly right and angles increase clockwise from there. Down is 90 degrees, left is 180, up is 270.
B
8
S
2
Posts: 35
Reputation: 572

### » Sun Jul 05, 2015 7:44 am

Yes! That's correct! 0 is right, that is what I was trying to say. I confused left with right... LOL sorry about that
B
17
S
7
Posts: 280
Reputation: 2,522

### » Mon Jul 06, 2015 8:34 pm

The wrong angles really weren't a problem but since i don't really know how to put a .capx file in a comment I uploaded the game to the Arcade under the name of "Zurvive!"In case you still don't get what I was trying to do.
I got it in a way that i split the whole upper part and created sprites for the Torso, the arms and the head and i flipped the arms to be upside down (It still had it's regular animations) and made an animation for it if it had to be facing left.
B
7
S
1
Posts: 6
Reputation: 435

Return to How do I....?

### Who is online

Users browsing this forum: No registered users and 23 guests