To get started drag the extension into GM 1.4, double-click the "Hobo Breakable" extension and goto the "Import Resources" tab, finally "Import All" and press "OK". You are now ready to use the code provided below in your existing objects!
//treat objects with physics (if set to true make sure object + room has physics turned on) global.phy_set = true; //initialize breakable object (typically in the create event) break_id = init_breakable(1); //break the object (typically replaces previous destroy call) destroy(break_id, o_player);
Version 0.0.3. Published October 22, 2014
Created with GameMaker: Studio v1.99.182
You can only review assets you've bought.
how use this thing?
How to Use
1. Import the extension into GM
2. Open the extension and `Import All` resources
3. Add the following to any object you want to become "breakable"
//initialize breakable object (typically in create)
break_id = init_breakable(1);
//break the object (typically replaces old destroy action)
//treat objects with physics (option that can be set on gamestart if needed)
global.phy_set = true;
Simple and easy to use
Not the most sophisticated looking, HOWEVER, very easy to use, edit and understand. Exactly what I needed, thank you!
Easy to change
Works and easy to change.
:+1: glad it worked as a base for someone to expand on :D