Asuma Posted April 1, 2014 Report Share Posted April 1, 2014 (edited) Yeah, so working on/off on a MegaMan X engine and I was wondering, what's the best what to do collision when regarding a background and active object? I've been doing something this, just would like to know if there is a better way. Edited April 1, 2014 by Asuma Link to comment Share on other sites More sharing options...
DimensionWarped Posted April 2, 2014 Report Share Posted April 2, 2014 What we do in Worlds if what we want to know is just that a sensor is colliding with something we've denoted as solid is that we do something similar to what you have above as far as the conditions are concerned, but once we've done the collision check once, we don't use it accross multiple events. Instead we simply set a variable to 1 if we determine there has been a collision this frame and then use that value from then on to determine whether that sensor is colliding with any solids. Of course, if you need more specific information that may or may not work (like that the ground sensor is on a moving platform for instance). Of course, prior to making all those checks each frame, some other action must take place to set all those flags to zero. Link to comment Share on other sites More sharing options...
Asuma Posted April 2, 2014 Author Report Share Posted April 2, 2014 Yeah, I saw in worlds, and I tried to replicate it, but the mask just fell through eh ground. Link to comment Share on other sites More sharing options...
Recommended Posts