Game controls
quinn221
Member Posts: 280
Hey Guys,
I am setting up some new controls for my Mario type endless runner game. I have the left side set up as Button A and the right side set up as Button B. I would also like to add in a swipe to shoot option. Is it possible to have the swipe to shoot overlaying the button A and B without triggering those buttons. If this is possible what would be the best way to do it, if now what are some other options. See image for visuals
Thanks
Comments
I would make three large actors covering the areas with rules to do what you like.
So B button is down?
Is shoot directional according to direction of swipe??
I would assume overlapping buttons would trigger both unless you delay Button A to check for swipe first. I'm on holidays. Can't send demo.
A is flip upside-down, B is jump. Ship to shoot is not directional.
You can do it, but it would necessarily involve a couple of compromises, for example there would need to be a small amount of latency on the A and B buttons.
Example attached.
YOU ARE A ROCKSTAR!
I'm new to GameSalad and planning to do same kind of game controls, basically divide the screen in half with two actors. The problem that I have is how do you change the attributes of another actor via another one? For example if control actor A is touched accelerate character actor B.
You can use a game attribute, let's call it GO! and make it a Boolean attribute.
Rule for A: If actor A is touched change GO! to true.
Rule for B: If GO! is true, then accelerate.
@zulfikar, if you need a tutorial for that kind of thing I've linked one below. This tutorial uses arrow graphics for the buttons, but you can use any image, placed anywhere with this same technique.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks for the help, this solved my problem!