cursors questions...

cursors questions...

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

cursors questions...

Post by smoth »

Not sure where this should go in modeling or modding so I post it here.

what was the deal with the new png support for cursors? can offset the cursors? so I could say, move the center of my select cursor so that a crosshair rather then an arrow would work?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: cursors questions...

Post by rattle »

I think you can set the xy origin of your cursor through a text file or something.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: cursors questions...

Post by Gnomre »

IIRC only "hotspot center" and "topleft" work, but that could have been changed/I could be wrong.

You can also set the frame length, re-use frames in animated cursor, and sort your cursors to your heart's content. Here's an example of one of SWIW's cursor text files:

Code: Select all

hotspot center
frame  bitmaps/cursors/move/move01.png  0.100
frame  bitmaps/cursors/move/move02.png  0.100
frame  bitmaps/cursors/move/move03.png  0.100
frame  bitmaps/cursors/move/move04.png  0.100
frame  bitmaps/cursors/move/move05.png  0.100
frame  bitmaps/cursors/move/move04.png  0.100
frame  bitmaps/cursors/move/move03.png  0.100
frame  bitmaps/cursors/move/move02.png  0.100
(each frame is one tenth of a second)

As you can see, I sorted all of our cursors into the bitmaps directory, leaving only these text files in (the now strangely named for its purpose) anims dir.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: cursors questions...

Post by smoth »

cool, thanks!
Post Reply

Return to “Game Development”