I made a spaceship. It can move around the screen an shoot lasers when the A button is pressed. I would like to turn this into a game, but sprite collision is a problem for me. Should I use SPHITSP or test the X and Y values?
From my experience, SPHITSP doesn't work well when a rotation have been applied to a sprite. If your ship doesn't rotate, then you can use SPHITSP.
Protip: SPHITSP(SPRITE1) always return the first that overlap SPRITE1, but SPHITSP() return the rest.
You can do something like this:
var SPHT=SPHITSP(LASER)
REPEAT
DAMAGESHIP SPHT
SPHT=SPHITSP()
UNTIL SPHT==-1
mmm... that doesn't fix it. You only set the center point to the point (8,8)
I made a clone of the battle system from undertale and discovered that issue with the collision. Here is the key: VENXE33J. Try to collide with the spears.
I plan on making the ship customizable. I also plan on adding tracking missiles and making the enemy an actual enemy. Have you tried my program out yet?