Just problems in general :?
chosenonestudios
Member Posts: 1,714
ok basically, I'm just doing a add on for my game....
Explaining:
the main character goes back and forth across the screen (to dodge stuff) I added a button to "shoot stuff"
Code:
button, when button is pushed, change game.firebutton to 1 when button is released change game.firebutton to 0
main actor, (the one that moves back and forth) constrain attribute game.maincharacter x to self.position x (same for y value)
spawner, when game.firebutton = 1, spawn actor (missile),
spawner, (still) constrain attribute self.position x to game.maincharacter x (same for y)
missile, move 90 degress at (300 speed)
Problems: sometimes the button works sometimes it doesn't (i have the missile actor on screen and it works, but if you barely take it off, it'll stop (and even when it kinda works, it doesn't work very well haha) )
Conclusion: If you see some problems in this or more efficient ways to do it please let me know, or if its just in general wrong, please show me how to do it! Thanks in advance:)
Explaining:
the main character goes back and forth across the screen (to dodge stuff) I added a button to "shoot stuff"
Code:
button, when button is pushed, change game.firebutton to 1 when button is released change game.firebutton to 0
main actor, (the one that moves back and forth) constrain attribute game.maincharacter x to self.position x (same for y value)
spawner, when game.firebutton = 1, spawn actor (missile),
spawner, (still) constrain attribute self.position x to game.maincharacter x (same for y)
missile, move 90 degress at (300 speed)
Problems: sometimes the button works sometimes it doesn't (i have the missile actor on screen and it works, but if you barely take it off, it'll stop (and even when it kinda works, it doesn't work very well haha) )
Conclusion: If you see some problems in this or more efficient ways to do it please let me know, or if its just in general wrong, please show me how to do it! Thanks in advance:)
Comments
So basically: push button, changes attribute "throw" to true. In the actor: if attribute "throw" is true, spawn actor Pot. That same rule has a timer that says After .1 second change "throw" to false.
Hope that helps.
_______________
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
http://gamesalad.com/forums/topic.php?id=4575#post-28021
_______________
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8