Unwanted character behavior

Get help using Construct 2

Post » Tue Oct 25, 2016 2:46 am

Hi everyone, I made a game inspired by flappy bird
http://play.google.com/store/apps/detai ... ernof.bakk

The character is supposed to "jump" on any click/touch
Everything seems to work fine on it, except when I touch outside of viewport on my Galaxy S5 mini, the character seems to be doing something close to a double jump or maybe a higher jump compared to when I tap inside viewport of the game.

Is it a problem coming from Construct 2 ?
Last edited by Mysternof on Tue Oct 25, 2016 2:50 am, edited 1 time in total.
B
6
S
1
Posts: 7
Reputation: 368

Post » Tue Oct 25, 2016 2:48 am

why dont you share a capx so we can see the problem and maybe fix it for you? installing the apk wont help you pin down the problem at all.
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Tue Oct 25, 2016 3:12 am

Here's a screencap of the only controls you can have while playing the game in the construct sheet
Also a picture of the game. I circled in red the part of the screen where the jump seems to changes to a higher jump when tapped on

Image

Image
B
6
S
1
Posts: 7
Reputation: 368

Post » Tue Oct 25, 2016 3:20 am

Or maybe if I could find a way to disable controls outside of viewport ? But still being able to click ads of course (my ads are outside of game's viewport)
B
6
S
1
Posts: 7
Reputation: 368

Post » Tue Oct 25, 2016 4:06 am

i dont think is the controls, its the animation, check for animation image points, and set them to y 0 or to max height all image points on Y ax must be the same, if the character does a double jump, then might be that your animation has image points in different places, which causes the look of a prolonged or double jump.

also you might want to disable the mouse plugin, since you already have touch object. touch object works both on mobile as for desktop, mouse does not work on mobile unless you tick the option for touch behavior, which might cause your double jump, since the action happens 2 times.

hope it helped you.

also if those are not the causes, take a look at the events for the black part, might be that the player passes half trough it, and your collision box its somehow broke, causing your character to push up a bit.
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Tue Oct 25, 2016 8:47 pm

thanks , but I found something else : placed an invisible sprite/object upon the whole viewport and then only allowed taps to work inside it, so you can't move the character at all if you tap outside of that invisible object. Problem solved
B
6
S
1
Posts: 7
Reputation: 368


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 60 guests