![]() |
Breaking Blocks in DragezeeY Engine 7 - Printable Version +- MFGG Forums (https://forums.mfgg.net) +-- Forum: MFGG (https://forums.mfgg.net/forumdisplay.php?fid=4) +--- Forum: Developer Discussion (https://forums.mfgg.net/forumdisplay.php?fid=10) +--- Thread: Breaking Blocks in DragezeeY Engine 7 (/showthread.php?tid=2359) |
Breaking Blocks in DragezeeY Engine 7 - Bully With a Hat - 04-28-2020 I'm trying to make it so that the brick blocks break when Mario walks into them from an angle. When I tried to do it, nothing happened! Here's my code: (In the obj_brickblock object) Code: Collision Event with object obj_mario: RE: Breaking Blocks in DragezeeY Engine 7 - Hyper - 04-28-2020 I think this would worked out better: Code: Step event: Explainations: - Since the brick object is already classified as a solid object. This prevent obj_mario overlap the mask for the brick object. In order to remedy this, collision_rectangle is an extended version of object collision event with far more flexibility. I added the value of 1 plus player's movement speed to have a more accurate collision. - For an instant trigger event, alarms are not really good with that. Event user is something that's far more useful if you want to activate something instantly. I wrote the script on my phone so I can't be 100% sure if it works. But under my knowledge it should worked better than it is before. Also, I'm not too sure what do you mean by walk from an angle, it would be easier for me to work on if it has more details about it. |