Replaceing mouse pointer with sprites?

Talk about making games.

Replaceing mouse pointer with sprites?

Postby MrJoe » Wed Aug 17, 2005 3:05 am

Dose anybody know if there is a way to replce the mouse with a sprite, I want the player to be able to control a small character that interacts with the enviroment, light torches by clicking on them, click and drag puzzle items, cut ropes by clicking them, etc.

I tried the "click through" method where you make a sprite with a hole in the middle to allow the mouse to click through the sprite, but it seems like the mouse "grabs" the sprite on the closest solid spot to the center.
User avatar
MrJoe
 
Posts: 13
Joined: Sun Aug 14, 2005 4:39 pm
Location: Long Island
Score: 0 Give a positive score

Postby makslane » Wed Aug 17, 2005 1:10 pm

You can use the "Change Cursor" action.

Or

1) Make an actor follow the mouse with the "Follow Mouse" action
2) In the "Create Actor" event disable the mouse down event with "Disable Event" action
3) hide the default mouse in the game properties
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest