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

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

New Here ,
Jun 12, 2017 Jun 12, 2017

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?

Views

344

Translate

Translate

Report

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

Votes

Translate

Translate
LEGEND ,
Jun 12, 2017 Jun 12, 2017

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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