Need Help with Point and Click Game

So I know the basics of this type of movement option, you click on the screen and the player object moves, the lower the speed the slower they go

GML:
if (xx != mouse.none && yy != mouse.none) {
move_towards_point(xx,yy,spd)
} else {
    speed = 0;
}
if (distance_to_point(xx,yy) < spd + 2) {
    xx = mouse.none;
    yy = mouse.none;
}
but does anyone have a thread or a video they could link me to so I could deal with things like path finding and collision with walls and objects? I really wanna make it a little Lucas Artsy
 

NightFrost

Member
Point&click based adventure games tend to use polygon based pathfinding, which I wouldn't recommend as one's beginner coding projects. The mp_potential commands should serve you well enough. I recall they may cause bit of wall-hugging in more complex layouts, but point&click rooms usually don't need anything very complicated.
 
Point&click based adventure games tend to use polygon based pathfinding, which I wouldn't recommend as one's beginner coding projects. The mp_potential commands should serve you well enough. I recall they may cause bit of wall-hugging in more complex layouts, but point&click rooms usually don't need anything very complicated.
That shouldn't be a problem, I'm making a stealth pnt n clck anyway
 
Top