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).
(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).