Chat has it's benefits:
deadeye: okay
deadeye: make two variables called lastX and lastY
Barri167: ANd I could get vectors based on those.
Barri167: And the new ones that is.
deadeye: yes
deadeye: that will give you the direction
deadeye: then you just always set lastX to X and lastY to Y afterward to get ready for the next tick
Barri167: Yeah but... even with the direction, I could add that to the player X and Y to get the point where I'd want to spawn the stars.
Barri167: But how would I spawn them in that AREA.
Barri167: As soon as you said get the direction I knew I'd use lastx and lasty to get the direction vector.
Barri167: But I still can't think of how i'd spawn the stars in a general area and not just in a line.
deadeye: well, once you have the angle you can pick a spawn point away from the player
deadeye: then do system: spawn star at random(100)-50, random(100)-50
deadeye: or something like that
deadeye: er, sorry...
deadeye: (spawnPointX+random((100)-50)), (spawnPointY+((random100)-50))
deadeye: that will give you a relative x range of -50 to 50, same for y
Barri167: What would be the point of doing the -50 afterwards? wouldn't it be the same to do random(50)?
Barri167: Ohhh
deadeye: nope
Barri167: I see now.
Barri167: Thanks!
deadeye: yep
deadeye: no problem