Bug: MouseY+MouseX floats off screen with 8-dir movement???

For questions about using Classic.

Post » Mon Jun 14, 2010 11:37 am

Hello. Darius here.

I am making the ghost shooter thing, and editing it. No, I am not taking Copyrights.

I made a cursor for the mouse while playing ghost shooter. Whenever the player (8-dir) moves with scrolling, the cursor starts floating away from the real cursor position and soon floats off-screen. If I move back, it floats back. The same happens if I say:
[always (every tick)] LIGHT :idea: position to PLAYER 8)
It floats away as well.

Yes. I am new to all this.

(If you want me to post the CAP just ask.)
B
2
G
2
Posts: 30
Reputation: 710

Post » Mon Jun 14, 2010 3:02 pm

You could try something like:
>Mouse button is down(inverted)
->cursor set position to player lerp(.x, player.x, 1-0.5^timedelta) lerp(.y, player.y, 1-0.5^timedelta)

Or
Add a new layer that doesn't scroll, and set the cursor on that.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests