im trying to learn with drag and drop and I really want a bird to swoop into the scene and steal a seed based on an alarm and can't figure out how to tell the crow I want its direction to be any existing seed :(
I know it's not very helpful to say, but don't use drag and drop! there's way less content out there and way less people to help with it, along with it being in some cases kinda harder to use. In general it's especially not worth it the more complicated things get!
@@SafetyKitten I eventually got my solution for the bird but like you said drag and drop is kind of complicating things Im afraid but Idk how to do normal code :(
@@1upIndie and use a parent thingy yeah (sorry im new to this). I tried that with the parent thingy (which is an empty object placed outside of the room but it doesn't want to lock on to the child where the enemies were linked so i had to go for this for now if instance_exists(obj_EPopcorn1) { var near = instance_nearest(obj_PShip_DD.x, obj_PShip_DD.y, obj_EPopcorn1); var target = point_direction(x, y, near.x, near.y); if image_angle != target { image_angle += 1; } move_towards_point(near.x + 100, near.y + 150, point_distance (x, y, near.x + 100, near.y + 150) / 16);
I am not sure what you mean by avoid walls. You mean like platformer jumping mechanics/topdown collisions? Then just look up these keyword and you will find tons of videos.
@@FriskDreemurr66669Ah, you mean path finding. Well, I made videos on that topic: ruclips.net/video/RmOqnp5d33Q/видео.html ruclips.net/video/UZhLV13HAno/видео.html ruclips.net/video/gqzsBhb7ov4/видео.html Hope that helps!
The "sin(degtorad)" part was the thing that I tried to do for hours.
Thanks a lot!
You are welcome mate, happy coding!
that's so awesome!
i was looking for a homing bullet that move smoothly and use direction!
thank you a lot!
Me too to be honest, I had some experimental versions (for the slowed version) but they all were twitching for some bs reason. But this one is solid!
Thanks for the vid. Your commentary has improved quite a bit from the old videos :D
Oh yeah, ... the old videos... let's pretend I never made them :D
you have saved me many times from stress when coding, i owe u a sub :)
just thanks for the content, always that guy who helps!
Indeed. Thanks for the trust!
Again, a good one...gj m8
thx!
Good Tutorial
Thanks for watching!
Great. Thanks mate :)
Ah snap, forgot to mention you.... So yeah, this video is for Valeria The Pagan Priestess!
@@1upIndie
When the projectile sprite finishes, I will upload a video and I will give you credits. Thanks my friend
thank you!!!
Your welcome!
im trying to learn with drag and drop and I really want a bird to swoop into the scene and steal a seed based on an alarm and can't figure out how to tell the crow I want its direction to be any existing seed :(
I know it's not very helpful to say, but don't use drag and drop! there's way less content out there and way less people to help with it, along with it being in some cases kinda harder to use. In general it's especially not worth it the more complicated things get!
@@SafetyKitten I eventually got my solution for the bird but like you said drag and drop is kind of complicating things Im afraid but Idk how to do normal code :(
a problem i had with this is that when the object is created, it goes left. is their any way to fix this?
Hm, did you try to give it a start direction that is going where it should be?
how to I make it home in to the closest of multiple types of enemies?
You can use instance_nearest.
manual.yoyogames.com/GameMaker_Language/GML_Reference/Asset_Management/Instances/instance_nearest.htm
@@1upIndie and use a parent thingy yeah (sorry im new to this).
I tried that with the parent thingy (which is an empty object placed outside of the room but it doesn't want to lock on to the child where the enemies were linked so i had to go for this for now
if instance_exists(obj_EPopcorn1) {
var near = instance_nearest(obj_PShip_DD.x, obj_PShip_DD.y, obj_EPopcorn1);
var target = point_direction(x, y, near.x, near.y);
if image_angle != target {
image_angle += 1;
}
move_towards_point(near.x + 100, near.y + 150, point_distance (x, y, near.x + 100, near.y + 150) / 16);
Obrigado (Thanks) 👍🏻
plz teach how to make it avoid walls
I am not sure what you mean by avoid walls. You mean like platformer jumping mechanics/topdown collisions? Then just look up these keyword and you will find tons of videos.
i mean moving around walls and still being able to find the target without touching the walls
@@FriskDreemurr66669Ah, you mean path
finding. Well, I made videos on that topic:
ruclips.net/video/RmOqnp5d33Q/видео.html
ruclips.net/video/UZhLV13HAno/видео.html
ruclips.net/video/gqzsBhb7ov4/видео.html
Hope that helps!
Hey 1up, It is good that you can already monetize, keep it up.
Thanks but that is pityfully low, I average on 20 bucks a month. It took me 2 years, 220 videos...
It is a lot of effort for so little.
Do you know how to create sonic physics?
What are sonic physics? A 2D sidescroller? A 3D like you saw on the dreamcast? A racing game??
uh there is a tutorial by SingleShotGamer that i used
Not working, because missing information
math