TheJoe
Member
Hey friends,
I'm making a game similar to the T-Rex when Google can't connect page. Couple of people on a tandem bike jumping over rocks basically. I'm trying to figure out what the best way to code points scoring would be. Here's an example image:
Basically at that moment where they successfully make it over the rock, they should score points. I tried
which didn't work. I'm started to think I should build out some lengthdir_y logic but I feel like I must be overcomplicating it.
Any ideas or pointers would be hugely appreciated!
Thanks!
I'm making a game similar to the T-Rex when Google can't connect page. Couple of people on a tandem bike jumping over rocks basically. I'm trying to figure out what the best way to code points scoring would be. Here's an example image:
Basically at that moment where they successfully make it over the rock, they should score points. I tried
GML:
if instance_exists(o_obstacle)
{
if o_player.x == o_obstacle.x then points++;
}
Any ideas or pointers would be hugely appreciated!
Thanks!