pulling an item from pause menu

kipdevkipdev 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

  • kipdevkipdev Member Posts: 275

    Noone knows? Man I wish I could remember who made that game

  • MantoManto Member Posts: 796

    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.

  • kipdevkipdev Member Posts: 275

    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

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited March 2015

    @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.

  • kipdevkipdev Member Posts: 275
    edited March 2015

    @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?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @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.

  • kipdevkipdev Member Posts: 275

    Thanks so much Jamie...helpful as always my friend

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome, glad it helped :)

Sign In or Register to comment.