Tilted Device = Action ?
I'm am trying to figure out how I can make a character move when the user tilts the device left or right. I can't figure it out though. Can someone help?
I'm am trying to figure out how I can make a character move when the user tilts the device left or right. I can't figure it out though. Can someone help?
Comments
Search on YouTube for GameSalad accelerometer. There are tutorials on how to do this.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Here is a tutorial that might help.
This link is being weird. You'll want the third video in the play list...
https://m.youtube.com/watch?list=PL3EyGmfc73E1YVtAZRKvIOBvHNlKX3zKF&v=JzluQc2XIiA
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Yes but how do you enable the amount of accelerometer movement in accordance to the amount of tilt?
There are tutorials on how to activate the accelerometer, but the movement is terrible since it is 2 gears (on and off)...
I would love to know how to synch accelerometer to the amount of tilt you impose on the device.
This thread might help:
http://forums.gamesalad.com/discussion/comment/585149/#Comment_585149
Also @POM's megatemplate has an accelerometer example:
http://forums.gamesalad.com/discussion/comment/379888/#Comment_379888
I used this for my next game.
A couple of things I did additionally was to calibrate the device at the beginning of the game. so when the game starts the "ball" is stationary. So the player can play the game whilst laying down. Allow the player to recalibrate in game so they can adjust their position.
https://youtu.be/2qgseapMRuc
Another thing I did was increase the sensitivity as the game progresses.