how can i make an player pass infront of & behind another actor (pic included)

slevslev Member Posts: 99
edited November -1 in Working with GS (Mac)
how can i make an player pass infront of an actor aswell as behind an actor depending on what route you tell the player to take?

image

if embed didnt work

http://i1121.photobucket.com/albums/l518/sl-images/infrontbehind.png

any ideas??

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Really awesome question. I don't have an answer but I'm interested to find out!!
  • DrGlickertDrGlickert Member Posts: 1,135
    Upon thinking about it, this probably is not the best way to do this. BUT, it's an idea.

    I'd make two actors. One that's invisible, directly on top of the other red block actor. If actor chooses the BLUE route then the Red Block actor: Change Attribute Alpha to 1. (which would be above the actor in the layering, go to scene tab in the scene viewer, then click on layers, then click on the arrow of Background and place player actor between the two 'red block' actors).

    This will make the actor appear to go behind the block.

    If they choose the green path then you wouldn't need rules to happen because it would look like the actor goes in front of it...

    See if that works. Just an idea though (probably not the best way to do this...but only thing I can think of).
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
  • slevslev Member Posts: 99
    thanks john

    do you know if there are any GS templates this is featured in?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    JohnPapiomitis said:
    here ya go

    http://gamesalad.com/wiki/how_tos:multilayermovement

    cheers

    i didn't know that existed, and was way easier than the complicated method I was coming up with. very cool.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    jonmulcahy said:
    i didn't know that existed, and was way easier than the complicated method I was coming up with. very cool.

    glad it helped man. I love that method, its an alot easier way of doing it.
  • slevslev Member Posts: 99
    sorry i meant any downloadable GS templates so i could have a closer look im still not kinda getting it
  • slevslev Member Posts: 99
    in the tutorial posted above are the atributes game.RedY and Game.BlueY the intergers or the real atributes

    cheers
Sign In or Register to comment.