Endless background suddenly just stopped working?
iPhoneDevForMe
Member Posts: 362
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
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
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
I have no idea why my method stopped working, but this new method is flawless! Thanks alot!
-Kyle