Lock unplayed levels & position a 'Spawn Actor'

nick.karkazis@hotmail.comnick.karkazis@hotmail.com Member Posts: 11
edited April 2014 in Working with GS (Mac)

Hi,

(Please note my questions are for PC)

I need some help. Rather than displaying a text for 'Level Complete', I'm spawning an actor that is an image that says "Level Complete". My problem is, I can't make the actor spawn in the same place on every level. I want it to appear in the very center of the page on every single scene - once the sequence has occurred. How do I center the image no matter what, every single time?

Also, I'm having trouble locking the un played future levels, and then as the player progresses, have them un lock. Can anyone please shed some light on how to do this...

Thank you for your help in advance.

Cheers,
Nick

Comments

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Where you have your SpawnActor behavior, put the Spawn at X and Y to half the Width and Height of the scene size, Make sure you Spawn relative to scene not relative to actor.

    Let me know if you need any more help

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    240x170 is a very small scene. What platform are you developing for (e.g. iPhone Portrait, iPad Landscape, etc.)?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    The "Help Wanted" sub-forum is part of the Commercial category (see http://forums.gamesalad.com/discussion/66065/help-wanted-forum-read-me). If this is not a paid request, it should be posted to the Working with GS (Mac) sub-forum. I'll go ahead and move it there for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • It's for iPhone Landscape

  • Hey mate,

    I just tried this and it's still not going to the center but I could be doing it wrong.

    This is what I have: Spawn Actor
    "Level Complete" Place i "Front of Layer"
    In the direction of "0" Relative to "Scene"
    From Position "Self.Position.X - 120(half of 240), Self.Position.Y - 85(Half of 170). Relative to "Scene"

    Sorry to be a pain!

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Any chance you could post screen shots of your rules and an example of whats happening just to give me a better understanding

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

Sign In or Register to comment.