How do I make tilt controls like Doodle Jump

Get help using Construct 2

Post » Fri Apr 11, 2014 7:11 am

I tried to use Compare orientation <-8 | Player(platform) simulate move left and the >8 for right
However, I couldn't achieve the smoothness and acceleration according to the degree I tilt, like Doodle Jump controls.
What I get is like the same thing I press the left arrow key twice, I hope you understand what I'm trying to say. Please teach me.
B
5
Posts: 35
Reputation: 331

Post » Fri Apr 11, 2014 10:05 am

Never played Doodle Jump, but know of it, so not 100% sure how the controls work.

Made a quick example for you how I would do these controls.
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Fri Apr 11, 2014 2:29 pm

Minor, where did you get 165r c2??
I have thought the actual release is 163.
users with 163r C2 can open it
Last edited by shukra on Fri Apr 11, 2014 2:41 pm, edited 1 time in total.
B
16
S
4
G
1
Posts: 59
Reputation: 1,129

Post » Fri Apr 11, 2014 2:38 pm

It's the beta. I keep forgetting to mention that.

Also I have just updated to the new beta as I was one behind earlier, so the newest beta is 166.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Fri Apr 11, 2014 2:41 pm

users with 163r C2 can open it
How i can download 165r?
Or please post screenshot evets list of tiltcontrol app
B
16
S
4
G
1
Posts: 59
Reputation: 1,129

Post » Fri Apr 11, 2014 2:47 pm

I have to purposely download r166 beta to view it, however, what I need is to use the Gamma orientation, as the game has to tilt horizontally, and I've tried setting Set vector Y or simulate platform Left, both don't come out the result that I wanted, what I want is something like you pour a water from a kettle, the more angle u tilt, the more water pours, same goes to the game, more tilt = more acceleration/speed
B
5
Posts: 35
Reputation: 331

Post » Fri Apr 11, 2014 2:53 pm

Serge Low wrote:I have to purposely download r166 beta to view it, however, what I need is to use the Gamma orientation, as the game has to tilt horizontally, and I've tried setting Set vector Y or simulate platform Left, both don't come out the result that I wanted, what I want is something like you pour a water from a kettle, the more angle u tilt, the more water pours, same goes to the game, more tilt = more acceleration/speed

Let's wait 166 p. That what are you talking about- I decided that the second action conditions (Beta, Gamma) - set speed.
But i still don't understand how set acceleration and set decceleration are working
B
16
S
4
G
1
Posts: 59
Reputation: 1,129

Post » Sat Aug 15, 2015 7:17 am

Hi

Has there been a method to set the player horizontal acceleration/deceleration movement based on the gamma orientation of a device?... i.e the more a device is tilted the faster the player moves.. the less it is tilted the slower the player moves. The example template provided, when it's run on a phone, is too rigid because you have to tilt the phone enough (angle 8) before the sprite reacts... doesn't make for a good experience in my opinion when compared to other infinite jumpers like 'go go goat' or indeed 'doodle jump'.

Thanks for any suggestions also.

*Edit*
I found the answer change the touch events to...
Touch > Gamma orientation >1 > player > platform vector X to Touch.Gamma*10
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099


Return to How do I....?

Who is online

Users browsing this forum: Ryan Kocourek and 13 guests