Using objects on objects

Started by tinyhippo, Wed 27/08/2014 09:26:55

Previous topic - Next topic

tinyhippo

Hey!

Is there a simple way for a character to use an object on another object?

For example, the player clicks "use" on a chair, the cursor becomes that chair and the player is then able to click on a table in the room and use the chair on that table to "combine" them.

Khris

Not really, you have to script it that way.
You can easily change the icon of a mouse mode: mouse.ChangeModeGraphic(eModeInteract, CHAIR_SPRITE);
Just make sure you keep track of what's happening next; if the player clicks anywhere else or changes the mouse mode, the game should revert fully to default behavior.

tinyhippo

Quote from: Khris on Wed 27/08/2014 11:24:23
Not really, you have to script it that way.
You can easily change the icon of a mouse mode: mouse.ChangeModeGraphic(eModeInteract, CHAIR_SPRITE);
Just make sure you keep track of what's happening next; if the player clicks anywhere else or changes the mouse mode, the game should revert fully to default behavior.
Thanks, just thought there's a better way :)

SMF spam blocked by CleanTalk