pulling an item from pause menu
kipdev
Member Posts: 275
Hi guys, I downloaded a game someone made on gamesalad, but I cant remember whose game it was...anyway in the game there was a button u could click that would bring up a screen with pieces that you could select and then place whereever u want on screen. Can someone tell me how this is done? I want to make a game that is tottaly differenr but has an option to pull out certain pieces and place them on screen...Thanks for the help.
Kip
Comments
Noone knows? Man I wish I could remember who made that game
Do you know the name of the game? Seeing the game would help to understand what you're trying to create.
Anyways, you could for example create spawners, actors that spawn another actors when clicked. And add drag and drop ability to the spawned actors, so the player can move them anywhere on the screen.
Ive got that part down, I just need to make it where they cannot move it once placed...im gonna try a previous suggestion ive seen though when I have time...thanks buddy
@kipdev, if you don't want the item to draggable again Spawn a new non-draggable copy of the actor once its dropped and use a Destroy Behavior to get rid of the old draggable actor.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c So like "if touch is release spawn actor"?...il try it...basically wanting people to be able to place multiple towers. Also Jamie since i know ur very knowledgeable with game salad, do u know how i can make the tower shoot at specific targets, once they spawn?
@kipdev, I've attached a sample drag and drop project if you need it.
I'm not entirely sure about the tower shooting at enemies, I'd have to play with it to figure it out for sure. I'm sure I've seen several threads about that topic over the years here on the forums.
One way might be to place a large invisible 'detection' actor over the tower, and then have the tower shoot at any actors that cross into this 'detection' zone/actor.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks so much Jamie...helpful as always my friend
You're welcome, glad it helped
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page