| Forum Home > How to make a game > Adding The Ability to Destroy Things | ||
|---|---|---|
|
Site Owner Posts: 29 |
This is how you can add the ability to destroy things by preforming a certain action.:) Note this is for gamemaker, not actual coding. 1. Use or Create the object being destroyed 2. Select the trigger (In Bloxminer, the case is Left Click / Left Mouse Button.) 3. Add the "Delete Instance" Command. 4. If you want, Add a sound. HERES A MORE ADVANCED WAY: 1. Make 3 sprites one for the object, one for the breaking, and one for te drop(Optional) 2.Make 3 objects one for the block, one for the breaking, and one drop(Optional) 3.Enter the object block. Put in: On left mouse, change instance to Breaking. On left mouse realeased, change instance to Block. 4.Enter in the breaking object. Put in: On left realeased, change instance to Block. On mouse leave, Change instance to Block On Animation end, change instance to Drop(Optional) OR Delete instance/or destroy object. 5.Enter the drop. Put in: On Closion with 'Object'/left mouse, Set score to +1 Related And destroy instance. Theres more but its too advanced for No0bs. | |
|
-- k
| ||