Physics behaviour objects stuck when too far from layout

For questions about using Classic.

Post » Wed May 18, 2011 9:16 am

Hi everyone! This is my first time posting... and I must say Im really happy to have learned about this program and to be able to use it.

Im trying to make a game using a lot of physics behaviour on objects. Its set on infinite space... and everything works perfectly except when the these objects reach a certain limit/border. They get stuck somewhere around 5000 to 10,000 pixels away from the layout.

Im not sure if theres a way around this. The main player has physics behaviour also, and gets stuck too when reaching this invisible border.

I tried taking away the physics behaviour out of the main player and some objects... they seem unaffected by this problem. seems to be a physics behaviour issue.

Is there a way around this or am I on the wrong track? I've searched for similar posts but couldnt find any on the search bar.

Id really appreciate the help!
Posts: 2
Reputation: 429

Post » Wed May 18, 2011 2:55 pm

There is a world size limit I can tweak for the next build. unfortunately, the version of box2d construct uses does not have the option for a limitless world. It might be possible if you're already doing some specialized stuff most likely to get infinite space, to pull a trick where you move all objects back to a closer part of the layout when you approach it, or destroy objects when they reach a certain distance, and recreate them when you get close enough with your ship that you will shift the world back to the origin
Spriter Dev
Posts: 3,285
Reputation: 17,151

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests