Items
mymogo
25 May 2014, 15:41Please help!!!i can't figure out how to set an item to be in your inventory when you start the game!!please respond quick
HegemonKhan
25 May 2014, 17:26player (Object) -> Objects (tab) -> Add -> (set it up)
in GUI~Editor 's scripts: run as script -> add a script -> objects -> ~ MoveObject -> (set it up)
in code form: MoveObject (your_item_object_you_want_to_move, player)
in code: your_item_object.parent = player
in GUI~Editor: game (object) -> scripts (tab) -> 'Start' script -> add a script -> (these are executed at the very start of playing your game)
in GUI~Editor 's scripts: run as script -> add a script -> objects -> ~ MoveObject -> (set it up)
in code form: MoveObject (your_item_object_you_want_to_move, player)
in code: your_item_object.parent = player
in GUI~Editor: game (object) -> scripts (tab) -> 'Start' script -> add a script -> (these are executed at the very start of playing your game)

jaynabonne
25 May 2014, 19:08Or, more simply, grab the object in the side list view and drag and drop it on the Player object. Then it will show up as a child of the player, and it will be in your inventory when you start.
Espera
26 May 2014, 09:16Listen to Jay, but I'll take it a step further. Let's say you have multiple conditions at the start of the game, like starting with different chracter types or classes which might have different items in their inventories. Include in the scripts 'Add to inventory' and select the item in question for the various conditions.
I can go deeper into detail on that sort of thing if you like.
I can go deeper into detail on that sort of thing if you like.
mymogo
31 May 2014, 15:45Ok
Thx!!

Thx!!
