🔴 Boomerang like in castlevania [Game Maker Studio 2 | Basics]
Вставка
- Опубліковано 15 лют 2020
- This video tutorial shows you how to make an easy boomerang in gamemaker studio which is very similar to the one you see in games like castlevania.
What is the magic here?
Not much to be honest. It is very similar to a regular projectile but it only negates its speed to a minus value. So here all you really need to know is that you need to assign the created instance a speed and direction value.
Inside the boomerang object you can let it rotate in the step event (optional) and decrease constantly the current speed. Just play around with the "start" speed and the decrease value to get the desired result. Add some salt and pepper and stir until cooked correctly.
Game shown is Noita (wished and given to me). So if you haven't checked it out, I highly recommend it.
▶ Gamemaker Studio: www.yoyogames.com/get
▶ Trial limitations: help.yoyogames.com/hc/en-us/a...
♥ My free game Clunky souls:
1up-indie2.itch.io/clunky-souls
♥ My assets:
Get some assets at itch.io 1up-indie2.itch.io/
♥ Support me and get fresh game art and game maker projects every month:
/ 1upindie
Follow me on:
/ 1upindie
/ 1upindie
/ discord
wow, that's what I'm looking for
1up Indie would like to thank you, i am starting to program and learning game maker stuff,your posts and your videos are helping me a lot thx. UwU
Ya welcome mate! Make awesome games and well, put me in the credits :D
Are you secretly making a castlevania series?
A metroidvania yes, but in the far far far future.
If you are looking for the "shadow" trail of the flying cross you see in the thumbnail, I got you covered -> ua-cam.com/video/Rivaxy6Y_Sc/v-deo.html
what do i do if i want him to go back to the player?
You could divide the whole process into states: First state the boomerang would fly and when the speed is near to 0, you would go into the second state where it flies towards the player, -> move_towards_point( o_Player.x, o_Player.y, 2 );
@@1upIndie when I do this the boomerang flies away from the player, because it is a negative, so when I change this it just moves towards the player at a constant speed and not a gradually increasing one? I know this is an old video but do you have a solution to this?
@@cottage00 Well, if you want to have some kind of acceleration you simply additonally ad a variable to o_Player.x.
@@1upIndie thanks!