Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: How do I place an item in a drawer.  (Read 2635 times)

0 Members and 1 Guest are viewing this topic.

padi

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
How do I place an item in a drawer.
« on: February 10, 2007, 11:34:23 PM »

Hello !

First I'm not english and I dont speak very well this language.  :-\   

I read and made the tuto of the WME documentation and now I'm testing my own scene with my own items. But I have a problem. I want to put an item in a drawer. My actor opens the drawer to take the item. But how do I place item in the drawer ? Add, I want that the player can see the item only if the drawer is open. But I don't found a exemple in the tutoriel or the demos, only for to open and to close the drawer.
Could you help me ?

Thanx !  :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do I place an item in a drawer.
« Reply #1 on: February 11, 2007, 12:40:41 PM »

Basically what you need to do is to create a scene entity, and only show the entity when the drawer is open. It's very similar to how the drawer itself is handled in WME demo. It's shown/hidden if the player uses it. You'd show/hide the item inside the drawer exactly the same way.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

padi

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Re: How do I place an item in a drawer.
« Reply #2 on: February 11, 2007, 01:16:57 PM »

Thx !  :)
My object is in my drawer now !  I continue my scene and I add the oldguy entitie. But, this entity is always on top and my actor disappears behind him.  How can I choose to show my actor on the top ?

Thank you !
« Last Edit: February 11, 2007, 01:59:23 PM by padi »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do I place an item in a drawer.
« Reply #3 on: February 12, 2007, 08:34:39 PM »

You'd best check the scene tutorial in the documentation. It discusses how the scene layout ordering works in detail.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.04 seconds with 20 queries.