Box2D bitmap not mapping past stage

Discuss issues specific to the Flash/AS3 port of Box2D
iCod3r
Posts: 3
Joined: Sat Dec 22, 2012 10:48 am

Box2D bitmap not mapping past stage

Postby iCod3r » Sat Dec 22, 2012 11:12 am

Hi everyone :)

I have a Box2D fluid simulation which is bugged by an annoying off stage error.
First and foremost let me tell you about the simulation. When the mouse clicks on the stage, it creates balls falling at regular gravity. These balls are mapped with a bitmap designed to look water like.

When the balls fall below the stage they are removed along with their bitmap as to be expected. But here is where it gets tricky, I have the stage moving down consistently bringing the camera up the scene up into the negative y area. Once I get up in this area, the debugdraw still shows the balls but the water does not map and the mouse cannot be clicked to create more balls (I can continue to hold and create the balls as long as I first click on the beginning stage area). Any ideas as to why this is happening?
Last edited by iCod3r on Mon Jan 07, 2013 4:02 am, edited 1 time in total.

iCod3r
Posts: 3
Joined: Sat Dec 22, 2012 10:48 am

Re: Box2D bitmap not mapping past stage

Postby iCod3r » Mon Jan 07, 2013 3:59 am

Figured it out. I am moving everything inside of the stage now rather than taking the scene outside the stage. ;)


Return to “Flash”



Who is online

Users browsing this forum: No registered users and 3 guests