Shaking when walking and jump problems - capx

Get help using Construct 2

Post » Sun Nov 27, 2011 2:48 pm



HI
Pleae see se my game.
Download


I have problem with
- player and window shaking when walk
- can't use shoot using X
- sometimes you can jump to platform, but sometimes NOT
- players legs are in the ground ;-)

thanks !
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Sun Nov 27, 2011 3:03 pm

Quick look :)

- player and window shaking when walk
This looks like it's (partly) caused by the Origin not being centered for all animations.

- players legs are in the ground

This is because of the collision mask of the 'stop' state of the cog sprite. Make sure it touches the bottom to stop him standing in the ground.

You seem to have some corrupt images also (try CTRL SHIF J in FireFox).

I quickly did a test using an invisible block with the ScrollTo and Platform behaviors and it scrolls much more smoothly. You may want to consider doing it that way - it may save you a few headaches.zenox982011-11-27 15:51:04
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Sun Nov 27, 2011 5:52 pm

[QUOTE=zenox98]

- player and window shaking when walk
This looks like it's (partly) caused by the Origin not being centered for all animations.

[/QUOTE]
What it??s Orogin ? Where can find it?


[QUOTE=zenox98]
players legs are in the ground

This is because of the collision mask of the 'stop' state of the cog sprite. Make sure it touches the bottom to stop him standing in the ground.[/QUOTE]

I think he's touching the bottom

thanks
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Sun Nov 27, 2011 7:12 pm

Origin is the in the animation editor.

Also noticed that in your events, when the 'Z' key is pressed, you try to spawn a sprite on layer 3 image point 3. But you haven't set any extra image points on the cog sprite, and you also don't have a layer 3!
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Sun Nov 27, 2011 8:43 pm

Thanks
Now I fight with origins, Is there any tutorial ?

Where red origin should be ? In the center of sprite or in the bottom ?
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Sun Nov 27, 2011 9:02 pm

Regarding the Origin - just select an animation, click on the origin and press Numpad 5 to center it.

Alternatively, press Right Mouse on the Origin and a menu appears. Select the 'Quick Assign' option, and assign the origin to wherever you require.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Mon Nov 28, 2011 12:00 am

To prevent animations making the window shake (and other reasons) it's usually best to have an invisible square sprite with no animations which you give the Platform movement to. Then you position your visible, animated player on top of that. This usually makes the game much more reliable.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests