StealthyMC Posted February 21, 2012 Report Share Posted February 21, 2012 I'm trying to replicate the way Sonic dies in alot of his 2D games. However, I've run into an issue. How do I make it so Sonic falls through all the objects in the room when he's dead? Normally, I would just look through the player object's code and look for anything that has to do with initiating the collision scripts, but apparently I can't find it. Help please? By the way, I'm using the Sonic DASH engine. (Yeah, I'm trying to redo the EoD engine.) Link to comment Share on other sites More sharing options...
TailsSena Posted February 21, 2012 Report Share Posted February 21, 2012 Move him to a layer where there aren't object collisions to worry about, but below the HUD. If that layer doesn't yet exist, make one. Link to comment Share on other sites More sharing options...
StealthyMC Posted February 21, 2012 Author Report Share Posted February 21, 2012 Move him to a layer where there aren't object collisions to worry about, but below the HUD. If that layer doesn't yet exist, make one. I think you may be referring to MMF2. I'm using GM8 and from what I know, I don't think there are layers like the one you are talking about. Link to comment Share on other sites More sharing options...
TailsSena Posted February 21, 2012 Report Share Posted February 21, 2012 Oh, well then... Is it possible to temporarily disable all collisions? Link to comment Share on other sites More sharing options...
StealthyMC Posted February 21, 2012 Author Report Share Posted February 21, 2012 Oh, well then... Is it possible to temporarily disable all collisions? ^ This is exactly what I'm trying to figure out. I don't know where in the code it initializes the scripts for the collisions. So I don't really know how to disable the collisions. Link to comment Share on other sites More sharing options...
TailsSena Posted February 21, 2012 Report Share Posted February 21, 2012 Can you group them and manage their activity like MMF2? I know nothing of GM8 coding, sorry. Link to comment Share on other sites More sharing options...
MalcomX Posted February 21, 2012 Report Share Posted February 21, 2012 The easy way to do this would be to have Sonic change into a different object all together. That way, this "Death" object won't interact at all with any of the ground or objects. Link to comment Share on other sites More sharing options...
StealthyMC Posted February 21, 2012 Author Report Share Posted February 21, 2012 The easy way to do this would be to have Sonic change into a different object all together. That way, this "Death" object won't interact at all with any of the ground or objects. That's exactly the way I did it before. However, I'm trying to use only one object less errors would happen that would concern that the main player object didn't exist. Link to comment Share on other sites More sharing options...
TailsSena Posted February 21, 2012 Report Share Posted February 21, 2012 So make him a new object, freeze the old one and make it invisible. Then change his action state to "Dead" so none of his other events run. Link to comment Share on other sites More sharing options...
StealthyMC Posted February 22, 2012 Author Report Share Posted February 22, 2012 So make him a new object, freeze the old one and make it invisible.Then change his action state to "Dead" so none of his other events run. Genius, thanks for the help. +rep to both of you guys Link to comment Share on other sites More sharing options...
Recommended Posts