ChangeCursor

From Game Editor

Revision as of 23:45, 13 June 2009 by Skydereign (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • ChangeCursor:

Change Actor cursor.


int ChangeCursor(char *actorName, char *imgName, int nFramesH, int nFramesV, int hotSpotX, int hotSpotY)

  • actorName

- "Event Actor": Actor that is receiving the current event.

- "Parent Actor": Event Actor's parent, if actor has a parent.

- "Creator Actor": Event Actor's creator, if Event Actor has been created in some "Create Actor" action.

- "Collide Actor": Actor that collided with the event Actor.

- Any Actor in game.

  • imgName:

- image file path relative to game directory.

  • nFramesH:

- number of horizontal frames.

  • nFramesV:

- number of vertical frames.

  • hotSpotX:

- cursor x hot spot.

  • hotSpotY:

- cursor y hot spot.


Return 1 if success, 0 on error.

  • Script Editor Syntax:
ChangeCursor("Event Actor", "Ball.png", 1, 1, 0, 0);