scene attribute size wrap x

GdoggGdogg Member Posts: 95

works great as a background continuous motion, however it also keeps multiplying spawns, causing the game to crash, is this a bug in game salad, i want this just for the actor not the scene,

need help cheers

Comments

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

    If you want a specific actor to wrap and not every actor, then you need to uncheck the scene wrap and make the actor wrap manually. This is done by making a rule that says (if the actor is moving left, for example) When self.position.X ≤ 0-self.size.Width/2, Change Attribute self.position.X to 1024+self.size.Width/2.

    *This assumes iPad Landscape. For other platforms, you would substitute a different scene width for 1024.

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

  • GdoggGdogg Member Posts: 95

    thanx for the reply, i have tried this, it creates gaps, which im not after. it needs to be like wrap x but not in scene but in actor if possible, thats what im realy after.

    thanx all for your replys

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    if you're getting a gap, adjust the number 1024 to something less until you don't get the gap anymore.

  • GdoggGdogg Member Posts: 95

    thanx for the reply, nope still not working.

  • GdoggGdogg Member Posts: 95
    edited March 2014

    ive worked it out... i should have thought of it before.... DOUBLE UP.. MAKE TWO OF EACH ACTOR, that way the gap will be filled.

Sign In or Register to comment.