Please help(spawn actor problem)

houssam.almas@hotmail.comhoussam.almas@hotmail.com Member Posts: 21
edited March 2014 in Working with GS (Mac)

I am working on game ground :I have put move in direction 200 and as i put the a rule when self spawned is false and if self position x is less than 0 then (do) a spawn actor and I have put from position as the x size of ground pic which is :2048
But what i am facing is that the ground arrives at the middle of the pic and then disappear without spawning.. Note that i am working on ipad landscape app

Comments

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

    I'm having a hard time understanding your question. If you can provide a sketch or screenshot, it would be helpful.

    It's possible that you just need to take into consideration that an actor's position is always calculated from the center of the actor. So, for example, if you want an actor that is 150 pixels wide to be positioned at the left edge of the scene, you would change its self.position.X to 75 (0+150/2). If you wanted it to be positioned at the right edge of an iPad landscape scene, you would change its self.position.X to 949 (1024-150/2).

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

  • i have fixed this problem but now the spawn actor just spawn one time and then stop and then no ground on the screen so how to fix this problem
    Sorry for any inconvenience i will never forget your help @tatiang‌

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

    @houssam.almas@hotmail.com said:
    i have fixed this problem but now the spawn actor just spawn one time and then stop and then no ground on the screen so how to fix this problem
    Sorry for any inconvenience i will never forget your help tatiang‌ ‌

    Can you post a screenshot of your rules?

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

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

    Yay!

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

Sign In or Register to comment.