VinnyVideo wrote:
1: Make sure you're using sound_play instead of sound_loop, and be careful if you put sounds in a Step event.
2: First of all, you'll need to import the sprites for Mario's hammer. When you press whichever button the hammer is assigned to, Mario's sprite will change to the hammer sprite. Then, at the end of the animation, Mario's sprite will change back to normal. You may need to create a "hammer" variable to test whether Mario is swinging the hammer. This variable will be useful in other parts of the code, too - for example, you probably don't want Mario to be able to jump or duck while swinging a hammer.
Does this make sense?
How do I make it hit enemies?
[quote="VinnyVideo"]1: Make sure you're using sound_play instead of sound_loop, and be careful if you put sounds in a Step event.
2: First of all, you'll need to import the sprites for Mario's hammer. When you press whichever button the hammer is assigned to, Mario's sprite will change to the hammer sprite. Then, at the end of the animation, Mario's sprite will change back to normal. You may need to create a "hammer" variable to test whether Mario is swinging the hammer. This variable will be useful in other parts of the code, too - for example, you probably don't want Mario to be able to jump or duck while swinging a hammer.
Does this make sense?[/quote]How do I make it hit enemies?