Assassin-HeatBeat Posted May 26, 2014 Report Share Posted May 26, 2014 In Game Maker, is there a way to make sprites angle while in a path? A certain Black Ace told me for image_angle = direction, image_angle = -direction, image_angle = direction-180, and image_angle = -direction-180 buttttt I got this Link to comment Share on other sites More sharing options...
thevaleev Posted May 26, 2014 Report Share Posted May 26, 2014 Heat, for first, turn sprite to the right side, then try to use this: image_angle = point_direction(xprevious, yprevious, x, y); Link to comment Share on other sites More sharing options...
Assassin-HeatBeat Posted May 26, 2014 Author Report Share Posted May 26, 2014 I think I'm doing something wrong, probably the path itself? Link to comment Share on other sites More sharing options...
StealthyMC Posted May 27, 2014 Report Share Posted May 27, 2014 I think I'm doing something wrong, probably the path itself? Instead of paths, you should try using vspeed, hspeed, and gravity variables on the fish object. For the chompers in my game I use this method. I also use a little more simple method than valeev: image_angle=direction; Not sure if this is all the best method to use, but it sure works for me. Using an alarm, you can reset the chompers position to where it started: // For alarm[] event x = xstart; y = ystart; Also if you want to add a little more detail you can try altering its depth too: // Arching over bridge effect if vspeed>0 { depth=-700; } if vspeed<0 { depth=1600; } This just gives the user the visual that the chomper is going under and over the bridge. You can replace the depth values to whatever you find suitable. :b Link to comment Share on other sites More sharing options...
Recommended Posts