Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: how to create a window into my scene to see content of drawer  (Read 2611 times)

0 Members and 1 Guest are viewing this topic.

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile

Hello everybody

i have an office background with filecabinet. there is a drawer, and i would like when my actor clic on the drawer to open it, appear a new window (300x300) into my scene to see the content of drawer. is it possible? if it's possible someone can help me to create the script? i'm graphist but not a coder and really i don't know any script language. if someone can help me it will be very nice.

thank you very much
Logged

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: how to create a window into my scene to see content of drawer
« Reply #1 on: April 24, 2008, 10:09:55 PM »

in fact "the window" that i need is like a pop up on the web site. is it possible?
thanks
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: how to create a window into my scene to see content of drawer
« Reply #2 on: April 24, 2008, 10:23:21 PM »

Probably the easiest way is to use a so-called close-up layer in the scene. Simply add a new scene layer in SceneEdit, check the "Close-up layer" checkbox, and make the layer initially invisible. The layer will contain all the graphics for the new "window".

Now, when you need to display the drawer content, call something like this from a script:

Code: WME Script
  1. var DrawerLayer = Scene.GetLayer("layer_name_here");
  2. DrawerLayer.Active = true;
  3.  
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: how to create a window into my scene to see content of drawer
« Reply #3 on: April 24, 2008, 11:25:01 PM »

Thanks you very much for your help mnemonic.

 
Logged
 

Page created in 0.09 seconds with 25 queries.