How do I keep double jumping from being disabled

Just started using Construct 2? Post your questions here

Post » Fri Jan 09, 2015 2:06 am

I have the following events for being able to double jump while overlapping the water sprite. It works perfectly fine except for when I set the playerbox scale to anything lower than '1'. After that it will work sometimes but not always.
You do not have the required permissions to view the files attached to this post.
B
10
S
2
G
2
Posts: 86
Reputation: 1,272

Post » Fri Jan 09, 2015 2:16 am

If you have a smaller scale, then your object may not be overlapping. And as such the code wouldn't work.
Why would you want to change the collision box's scale ? Prefer to modify its size directly.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Fri Jan 09, 2015 2:30 am

Thanks! I fixed it by blanketing the body of water with one invisible sprite that the player can overlap with to change its settings. The water sprites were all separate and snapped to the grid. When the scale was changed on the player it must have been somehow not been overlapping between water sprites even though there was no open space between them.

I tried changing the size of the 'playerbox' in the above eventsheet and the appropriate player sprite at first. Once the player sprite was smaller than the original 16x16 it would no longer become mirrored when moving to the left, it would always stay facing one direction.
B
10
S
2
G
2
Posts: 86
Reputation: 1,272


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests