MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
(HELP!) How to create Beezos in Hello Mario Engine in Game Maker Studio?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
(HELP!) How to create Beezos in Hello Mario Engine in Game Maker Studio?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 4 5 6 7 8 … 16 Next »
(HELP!) How to create Beezos in Hello Mario Engine in Game Maker Studio?
Mark All Posts Read Today's Posts

(HELP!) How to create Beezos in Hello Mario Engine in Game Maker Studio?
goh
Koopa
Members
#1
07-03-2020, 09:29 PM
I want to create Beezos from Super Mario Bros. 2, but don't know how to do it. Can anybody help me code it please? I've got the sprites ready though.

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
Main Site Moderator Site Developer/Webmasters Wiki SysOp Big Help Submitter Super Reviewer (2) Wiki Contributor Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up Minigame Comp Top 5 (3) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 (2) Drawing Comp Top 5 Game of the Month Winner NCFC Contributor (4) Secret Santa (5) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2017 Winner (3) MFGG Awards 2019 Winner MFGG Awards 2024 Winner
#2
07-04-2020, 11:11 AM
First of all, you're going to want to create a new object in the Enemies folder.

You're probably going to want this enemy to move to the left. You might use a bit of code like this in the Create or Step event:

Code:
hspeed = -0.5;

You probably don't want them to move unless they're reasonably close to the player, so you'll want to deactivate them unless they're within the current view. You can take care of this by setting its parent object to the same as other enemy objects.

Then, you'll want something to happen when Mario touches it. Mario should be able to ride on it (or at least stomp it) if he hits it from above, while it should hurt Mario if he touches it from the side. You'll add this code to the collision event. Again, the Hello Engine should take care of all the collision code if you assign the correct parent object to Beezo (probably the same one used for other SMB2 enemies in the engine).

Does this make sense?
Course clear! You got a card.

[Image: CourseClear.gif]

[-] The following 1 user Likes VinnyVideo's post:1 user Likes VinnyVideo's post
  ↳ goh
goh
Koopa
Members
#3
07-04-2020, 03:30 PM
(07-04-2020, 11:11 AM)VinnyVideo Wrote: First of all, you're going to want to create a new object in the Enemies folder.

You're probably going to want this enemy to move to the left. You might use a bit of code like this in the Create or Step event:
Code:
hspeed = -0.5;

You probably don't want them to move unless they're reasonably close to the player, so you'll want to deactivate them unless they're within the current view. You can take care of this by setting its parent object to the same as other enemy objects.

Then, you'll want something to happen when Mario touches it. Mario should be able to ride on it (or at least stomp it) if he hits it from above, while it should hurt Mario if he touches it from the side. You'll add this code to the collision event. Again, the Hello Engine should take care of all the collision code if you assign the correct parent object to Beezo (probably the same one used for other SMB2 enemies in the engine).

Does this make sense?

I just want the sprite facing left, not right.

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
#4
07-04-2020, 05:19 PM
Use image_xscale to flip sprites horizontally. Here's a very simple way to do this:

Code:
image_xscale = -1;
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
« 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