Screen buttons on iphone to control movement and spawning
gavthelion
Member Posts: 31
Hi all : ) GS is great but I think I'm going backwards on the game control side of things.
I have two buttons on my iphone screen I want button 1 to control left and right movement of my space ship and button 2 to file a missle. All I end up doing is either moving and shooting at the same time or nothing happens.
so here's what I am doing thus far...
button 1 actor - All/any, postion inside, button pressed -
(on space ship actor) move left or right etc.
button 2 actor - All/any position inside, button is down -
(on space ship actor) spawn missle.
trouble is both buttons make space ship move and fire.
I know I'm suppoed to use the + attributes to add Button and button pressed etc. but I dont understand to use Boolean of interger or real for button/button pressed?? to be honest I really am confused on want to use when have multi button presses on iphone screen.
If any one at all can help with this that would be super. : )
I have two buttons on my iphone screen I want button 1 to control left and right movement of my space ship and button 2 to file a missle. All I end up doing is either moving and shooting at the same time or nothing happens.
so here's what I am doing thus far...
button 1 actor - All/any, postion inside, button pressed -
(on space ship actor) move left or right etc.
button 2 actor - All/any position inside, button is down -
(on space ship actor) spawn missle.
trouble is both buttons make space ship move and fire.
I know I'm suppoed to use the + attributes to add Button and button pressed etc. but I dont understand to use Boolean of interger or real for button/button pressed?? to be honest I really am confused on want to use when have multi button presses on iphone screen.
If any one at all can help with this that would be super. : )
Comments
Though how do you have one button control left and right?
Download this project and you should be able to see what I mean.
http://gamesalad.com/game/play/23210
I didn't explain my self properly.
(The link takes me to the game but it doesn't run, I get a black screen with 4/5 white squares).
I do not intend using multi touch just yet!
I have two on screen buttons/actors
one to control direction, one to control firing.
The movement button/actor was going move my space ship in 3 positions on a loop toward the left (If not I was going to create an extra button/actor for right movement).
The other button/actor just to shoot. If yourself/other GS chefs can explain in detail how to set this up this would save me a lot of time.
Thanks again. : )
Hello gamesalad chefs - if any one can explain how to set this up in detail please?
2 buttons on screen, 1 button to move spaceship left, 1 button to fire from spaceship.
Thanks : )
If they both work as they are intended individually, what commonality between them causes them to not work?