Tips on HUD multiple placement?

gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
edited November -1 in Working with GS (Mac)
Hi, the HUD for my adventure game consists of 5 actors, and these need to be placed on at least 30 scenes. Has anyone any tips for placing these which would be quicker than dragging each actor out on each scene, then changing the x,y postioning each time?

""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    I have done the following for my 50 level game.

    Drag the hud actors in the scene and position until your happy, then jot down the X Y for the actors.

    Then in the main actor do some code like change attribute x 100 y 200 (this will depend on where you want the actors).

    This will ensure all hud actors are in the correct position.

    Another way would be to use a spawn...have a controller actor and do spawn actor hud X 200 Y 200 scene (make sure this is you hud layer).

    I tend not to use spawn a lot nowadays but it's up to you.

    Another thing i do when i know i need a lot of levels is to make a base template scene with everything in then i just copy paste the scene to give me a head start on other levels.

    You template scene would have your 5 hud actors in it and already set up so for you next level you just click alt and drag the scene to paste a duplicate.

    Darren.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Appreciate your help Darren, thank you. I think I might experiment with the first idea; although to be honest that'd be as much time as positioning the actors themselves, to be honest...

    I too avoid spawning if I can help it and wouldn't want to go down that route. Some of the actors are instances anyway.

    I didn't think one can copy and paste actors; I just tried and as I remember, it wouldn't paste (not sure it even copied). Was this a feature in .8.9 that's disappeared as well? I can't remember. It's annoying also that one can't select more than one actor at a time.

    But thanks again; without My Behaviours as well I'm huffing at the screen as it is; I'll just have to plough on and do it the long way round... :-(

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • UtopianGamesUtopianGames Member Posts: 5,692
    Try making a scene and positioning all the hud actors in it.

    Then you can go to home, click/alt that scene to make a copy then your positioning is already done.

    That should still work in 0.9

    Darren.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Excellent one, Darren! D'oh! Kicking myself that I didn't think of that! Can't thank you enough, really; you've saved me so much hassle, thanks and cheers! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • UtopianGamesUtopianGames Member Posts: 5,692
    Nice one...the code option was an option in case you already made loads of scenes but this is the best way ie make a scene then copy it.

    Darren.
Sign In or Register to comment.