MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 6 7 8 9 10 … 16 Next »
New Game Maker 8.1 Engine
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 6 7 8 9 10 … 16 Next »
New Game Maker 8.1 Engine
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 6 7 8 9 10 … 16 Next »
New Game Maker 8.1 Engine
Mark All Posts Read Today's Posts

New Game Maker 8.1 Engine
United States Bully With a Hat
Resident Forgotten Mario Enemy
Members
Submitter Iso Collab Contributor MFGG 19th Anniversary
#1
09-10-2019, 10:50 AM (This post was last modified: 09-10-2019, 10:54 AM by Bully With a Hat.)
I made a new engine in GM8.1, and it's going pretty well, except for the semi-solid platforms and Mario taking damage. Some of the semi-solids work fine, but when the get to a certain y-level, it acts like a regular solid platform. Whenever Mario takes damage, the game freezes. I need help, so I'm posting a beta build so you can see the code.

http://www.mediafire.com/folder/jnu2t2d9...gie_Beta_1

I hope you can help!

Also, another bug: When I stomp a Galoomba, all of them disappear instead of just the one.

  ↳
United States Jeff
Koopa
Members
Submitter Minigame Comp Runner-Up Minigame Comp Top 5 Game of the Month Winner Secret Santa
#2
09-10-2019, 02:45 PM
I'm not sure about the semi-solid blocks, I couldn't reproduce the problem.

Whenever Mario takes damage, the game freezes.
In obj_deadmario's creation event:
Code:
if (instance_exists(obj_parplayer))
{
    instance_create(obj_parplayer.x, obj_parplayer.y, obj_deadmario)
    alarm[0] = 1;
}
you're creating another instance of obj_deadmario, which creates another obj_deadmario and another, and this repeats forever. Or until GM realizes that it's stuck and crashes.

When I stomp a Galoomba, all of them disappear instead of just the one.
In scr_damage:
Code:
if (place_meeting(x, y + vsp, obj_parenemy)) && vsp > 0
{
    vsp += -10;
    with(obj_parenemy)
    {
        instance_destroy();
    }
}
you're destroying every instance of obj_parenemy. If you want to destroy only one, you'll need to get its id and destroy that. Something like this:
Code:
var enemyId;
enemyId = instance_place(x, y + vsp, obj_parenemy);
if (enemyId != -1 && vsp > 0)
{
    vsp += -10;
    with(enemyId)
    {
        instance_destroy();
    }
}
[-] The following 1 user Likes Jeff's post:1 user Likes Jeff's post
  ↳ Hyper
United States Bully With a Hat
Resident Forgotten Mario Enemy
Members
#3
09-10-2019, 09:24 PM
OK, thanks for the help!
Thumbs UpUntil next time, do the Mario Bully!Thumbs Up
i'm actually sans undertale
D D D' A G# G F D F G

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
Forum Jump:

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

Linear Mode
Threaded Mode