Touchscreen movement
tovamoxie1998
Member Posts: 3
I'm new to all of this so please bear with me on this. (sorry if this is in the wrong spot)
I am trying to make a game with movement similar to flappy bird.
I need to make the actor move up and to the left when the left side of the screen is tapped/click, up to the right when the right side of the screen is tapped/clicked, and straight up when the middle of the screen is tapped/clicked.
Thank you everybody for your help in advance
One more dumb question, the white lines inside the black box when you start a new project, do those represent the screen size of the iphone?
Comments
Welcome. There are Many tutorials that will help you get started.
Here is one about flappy birds.
Below is a link to another flappy bird style game tutorial I did awhile back.
https://gamedevelopment.tutsplus.com/tutorials/buzzy-bee-create-a-flappy-bird-style-game-in-gamesalad-step-by-step--gamedev-14733
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks guys!
Now is it possible to split the screen into 3 parts (left, middle, right) and have each one of those trigger a different direction?
I'm in portrait mode btw
Yes. You can add a rule condition for the touch's X position in addition to the fact that a touch occurred (e.g. When Touch is Pressed). So you could then do something different based on where on the screen the player touched (e.g. x<300, x≥300 and <600, x≥600).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
In addition to the method @tatiang mentions, you could also create 3 (or more) invisible buttons that cover each 1/3 of the screen and then use those buttons to trigger your actions. You can make actors invisible to the eye by reducing their Alpha value to 0. Those actors will still be on screen and able to perform like any other actor, you just won't see them.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Edit
Found the answer, thank you guys for your help!