Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

[MMF2] Collision with static engines...


Asuma

Recommended Posts

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.

 

likedis.png

Edited by Asuma
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...