Platform Glitch, Fails to Jump on GravityBased Platformer

Bugs will be moved here once resolved.

Post » Tue Jun 17, 2014 10:18 am

Problem Description
Player fails to jump in gravity based platformer. When you move to the right or left it sometimes fails to execute jump while moving( right will demonstrate it best but it will occur in both directions)

Attach a Capx
http://www.mediafire.com/download/sn3qz ... rmBug.capx

Description of Capx
Simple redue of an earlier example. It is based on this tutorial from the tutorial section. Link from the tuts section below
( original tut)
https://www.scirra.com/tutorials/333/gr ... tform-game

Steps to Reproduce Bug
  • start the game and move player to the right
  • when the player swings into action it will be at a slight angle
  • try and jump multiple times.
  • try both directions, multiple tries and you will see it.

Observed Result
Player sometimes does not jump

Expected Result
player should jump on key pressed

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: YES

Operating System and Service Pack
windows 8.1
Construct 2 Version ID
173
B
55
S
17
G
5
Posts: 184
Reputation: 8,883

Post » Tue Jun 17, 2014 12:21 pm

See how to make a platform game. You should use an invisible non-animated square sprite with the platform behavior, and place the player sprite (with no behavior) on top. As it is your collision mask and events to rotate the object will interfere with the platform behavior. If you check the 'is on floor' condition, it is regularly losing contact with the floor, and you are not allowed to jump when in mid-air. See the 'rotating platformer' example for a working demo of this. Closing as won't fix.
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450

Post » Wed Jun 18, 2014 8:15 am

Deleted my last post, I now understand what your saying, thanks.
B
55
S
17
G
5
Posts: 184
Reputation: 8,883


Return to Closed bugs

Who is online

Users browsing this forum: Google [Bot] and 0 guests