• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED (GM8) error on bullet creation origin

thejosving

Member
This one is simple. My obj_nailgun create obj_nail projectiles with their origin based on her origin (the gun), but since the gun rotates following the obj_cursor, the nails sometimes create away from the gun, bugging a little.
how can i fix this?
aasda-2021-09-27-23-01-52-35.gif
 

Attachments

TheouAegis

Member
The sprite origin doesn't have to actually be in the sprite. Just make your sprites all face to the right by default (0 degrees) and set your nail projectiles origin to -16 or whatever so that it lines up with the tip of the gun.
 

thejosving

Member
The sprite origin doesn't have to actually be in the sprite. Just make your sprites all face to the right by default (0 degrees) and set your nail projectiles origin to -16 or whatever so that it lines up with the tip of the gun.
it worked. thanks!
 
Top