Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do i change my cursor for a game i am making?

New Here ,
Jun 12, 2017 Jun 12, 2017

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?

494
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 13, 2017 Jun 13, 2017
Translate
LEGEND ,
Jun 12, 2017 Jun 12, 2017

You don't change the cursor, you hide it, then code an object to continually update its position to the current cursor position.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 12, 2017 Jun 12, 2017

okay so how would i set up the code to make an object constantly update on to the cursor?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2017 Jun 12, 2017

You are literally asking us to do your homework for you.

Do they not teach programming in this programming class?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 13, 2017 Jun 13, 2017
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2017 Jun 13, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines