[SOLUTION]: x: ((Sin(x position of primary sprite) * q [any number needed for a distance] ) + (x position of primary sprite) ), y: ((Cos(y position of primary sprite) * q ) + (y position of primary sprite) )
Image of solution:
Thanks for helping!
I have a sprite that rotates, but I want to be able to check the color of a pixel in front of my sprite
Like this:
Imagine your Sprite had a little companion Ball, set to float in front of it, with color the opposite of whatever background pixel color the ball blocked?
You would need a fast Clock Timer to check the Sprite direction and location, and to know how far out to position the Ball.
Solved my problem, by using a similar setup to the movement controls for the primary sprite, I got it to sense the color in front. If anyone ends up with a similar problem, the equation is x: ((sin(x[of p{rimary}-sprite])*q)+x[of p-sprite]) y: ((cos(y[of p-sprite])*q)+y[of p-sprite]), set q to whatever is needed to sense a distance in front.