spire8989
Member
|
Help with Gui.ms()
I'm starting work on an adventure game and I'm trying to make Gui.ms() check for objects under what I'm holding (to open doors, secret places, etc.) but I can't quite seem to figure out how to link them.
The doors are stored in a container named doors at the moment, I need to make it so the key (the only item in the game) opens the door(the only door in the game) - I don't care how rough it is.
Thanks for any advice/help.
|
|
05-08-2010 09:12 PM |
|
Esenthel
Administrator
|
RE: Help with Gui.ms()
Gui.ms points only to Gui Objects (button, window, checkbox) not game objects
|
|
05-08-2010 09:37 PM |
|
spire8989
Member
|
RE: Help with Gui.ms()
Right then, I guess I'll try a ScreenToPosDir with a phys ray
I'm just having trouble getting from my:
InventoryGui::update(Game::Chr &owner)
into my checkInteraction function inside of the player class since owner can't be casted over.
Also I'm not sure how to check what the "Game::Obj *objectUnderCursor;" would relate too, I'm thinking I should use objectUnderCursor->id()->asText()? At least to display to myself, but for use it would be without the call to asText.
(This post was last modified: 05-08-2010 11:02 PM by spire8989.)
|
|
05-08-2010 09:42 PM |
|