MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 5 6 7 8 9 … 16 Next »
Breaking Blocks in DragezeeY Engine 7
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 5 6 7 8 9 … 16 Next »
Breaking Blocks in DragezeeY Engine 7
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 5 6 7 8 9 … 16 Next »
Breaking Blocks in DragezeeY Engine 7
Mark All Posts Read Today's Posts

Breaking Blocks in DragezeeY Engine 7
United States Bully With a Hat
Resident Forgotten Mario Enemy
Members
Submitter Iso Collab Contributor MFGG 19th Anniversary
#1
04-28-2020, 11:12 AM
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:
execute code:

if (global.powerup == 15)
{
    alarm[0] = 2
}

Alarm Event for alarm 0:
execute code:

sound_play(snd_break);
score += 50
{
    ID = instance_create(x+8,y+8,obj_shard)
    {
        with (ID) motion_set(45,6)
        with (ID) sprite_index = spr_shard_t
    }
    ID = instance_create(x+8,y+8,obj_shard)
    {
        with (ID) motion_set(60,6)
        with (ID) sprite_index = spr_shard_t
    }
    ID = instance_create(x+8,y+8,obj_shard)
    {
        with (ID) motion_set(120,6)
        with (ID) sprite_index = spr_shard_t
    }
    ID = instance_create(x+8,y+8,obj_shard)
    {
        with (ID) motion_set(135,6)
        with (ID) sprite_index = spr_shard_t
    }
}
with (self) instance_destroy()
What do I do?

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Breaking Blocks in DragezeeY Engine 7 - by Bully With a Hat - 04-28-2020, 11:12 AM
RE: Breaking Blocks in DragezeeY Engine 7 - by Hyper - 04-28-2020, 01:09 PM

  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode