Endless background suddenly just stopped working?

iPhoneDevForMeiPhoneDevForMe Member Posts: 362
edited November -1 in Working with GS (Mac)
So I have been making a game for some time now and it requires a scrolling background. I have been using a method that has been working VERY well for weeks. Yesturday, I started my game, and suddenly it is not working correctly. Here are my rules:

Move
-- Direction 270 (down) Speed 100

Rule When Attribute self.position.y is less than 240
--Spawn actor background
--position 160 and self.position.y+480

Rule When Attribute self.position.y is less than -250
--Destroy Actor

When used in the viewer, this method is flawless just as it has been for the past couple weeks. When I load it onto all 3 of my devices, it does not work. The background just never spawns again. I also made a completely new project just to test it and I have uploaded this to be downloaded.

If anyone wants to take a look and let me know if it is doing the same for you, it would be greatly appreciated! Any suggestions would be nice too!

-Kyle

Comments

  • reddotincreddotinc Member Posts: 653
    Hmm I use two background instances that loop based on a move

    when self.position.x < -240

    change attribute self.position.x to 720+240+self.position.x

    then have one at x = 0 and one at x = 480

    (obviously change to y for yours)

    // Red Dot Inc
  • SingleSparqSingleSparq Member Posts: 1,339
    Try deleting the instance of the actor an add it again. I find if something stops working for no reason adding it again fresh fixes the issue.
  • iPhoneDevForMeiPhoneDevForMe Member Posts: 362
    Right on the spot RedDot!

    I have no idea why my method stopped working, but this new method is flawless! Thanks alot!

    -Kyle
  • reddotincreddotinc Member Posts: 653
    iPhoneDevForMe said:
    Right on the spot RedDot!

    I have no idea why my method stopped working, but this new method is flawless! Thanks alot!

    -Kyle

    Glad to help :)
  • SingleSparqSingleSparq Member Posts: 1,339
    Gonna try that method too-thanks!
Sign In or Register to comment.