Copy link to clipboard
Copied
In my programming class we had to create a game were something would chase after our mouse cursor; for mine i wanted to change the cursor. I am very new to coding and most tutorials that I've found are for an older form of action script or don't work in adobe animate. what code would i use?
Google is an amazing tool -> https://www.youtube.com/watch?v=j0SYi2nXsec
Create a Custom Mouse Cursor in Adobe Animate/Flash - YouTube
Copy link to clipboard
Copied
You don't change the cursor, you hide it, then code an object to continually update its position to the current cursor position.
Copy link to clipboard
Copied
okay so how would i set up the code to make an object constantly update on to the cursor?
Copy link to clipboard
Copied
You are literally asking us to do your homework for you.
Do they not teach programming in this programming class?
Copy link to clipboard
Copied
Google is an amazing tool -> https://www.youtube.com/watch?v=j0SYi2nXsec
Create a Custom Mouse Cursor in Adobe Animate/Flash - YouTube
Copy link to clipboard
Copied
Even without Googling tutorials, there are basically four things you need to know to replace the cursor.
1. How to get the cursor position.
2. How to set a movieclip's position.
3. How to run code at regular intervals.
4. How to hide the system cursor.
If you're coding a game where something chases the mouse cursor, you already know 1, 2, and 3. In fact the only difference between your custom cursor and the thing chasing the cursor is that the thing just chases more slowly.