Layer Help

NicholasSeahNicholasSeah Member Posts: 68
edited February 2012 in Working with GS (Mac)
Hello All,

I am making a Whac-A-Mole type of game but my game is that you drag the moles and drop it somewhere else, so the moles now are spawning infront of the dirt(Spawner), I want the moles to spawn behind the dirt(Spawner) and then when touched is pressed the mole would be infront of the actor. So the question is How do I make the moles when touched is pressed then it will be infront of the dirt(Spawner)?

Thanks A lot :D

Comments

  • NicholasSeahNicholasSeah Member Posts: 68
    Hi Tshirtbooth thanks for replying but I tried to do whatever you did in your tutorial earlier but it didn't work

    Thanks :D
  • NicholasSeahNicholasSeah Member Posts: 68
    Oh ok I will watch it again :D

    Thanks Again :D
  • MotherHooseMotherHoose Member Posts: 2,456
    Layer list:
    moleDrop
    ----Spawner2 … to place mole in front of dirt
    Dirt
    Moles
    ----Spawner1 … to place mole behind dirt
    Background

    spawner will spawn on its own layer
    need a gameAttribute Index type to tell which spawner to spawn and when
    game.Spawner#

    and on each spawner an index type attribute my# = 1 or 2 … 0 would be do nothing

    whatever you use to spawn the moles behind dirt
    Spawner1
    Rule: When
    game.Spawner# = my#
    --do the spawn
    --changeAttribute: game.Spawner# To: 0 (after 1 spawn)

    Spawner2
    Rule: When
    game.Spawner# = my#
    --do the spawn
    --changeAttribute: game.Spawner# To: 0 (after 1 spawn)

    ===
    though, think having the moles off-screen at their correct X,Y and just changing their X,Y would also work
    moles in front of dirt at the top off-screen with correct X and change their Y
    moles behind dirt at the sides off-screen with correct Y and just changing their X

    @};- MH
  • NicholasSeahNicholasSeah Member Posts: 68
    edited February 2012
    Thanks a lot MH I will try :D
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited February 2012
  • MotherHooseMotherHoose Member Posts: 2,456
    edited February 2012
    and, you know, Darren, I probably learned from that template! =))

    though, my mind says it was a video you did with trees!

    as usual, we all have to thank you for being there for all of us!

    @};- MH
Sign In or Register to comment.