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

Pages: 1 [2]  All

Author Topic: Flashlight script  (Read 17567 times)

0 Members and 1 Guest are viewing this topic.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: Flashlight script
« Reply #15 on: January 18, 2012, 07:24:16 PM »

I think that having the scene originally covered and removing the cover pieces as you move the mouse pointer over them is the only feasible way.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Flashlight script
« Reply #16 on: January 23, 2012, 04:39:05 PM »

Thanks Mnemonic, any idea of what I would need to do to the code to get started? I did something like when the mouse goes over one of the black tiles, the entity deletes, but it is not working :( 
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: Flashlight script
« Reply #17 on: January 24, 2012, 06:15:24 PM »

I think something like this should work:

create a bunch of black interactive entities and put this to their script:

Code: WME Script
  1. on "MouseEntry"
  2. {
  3.   this.Active = false;
  4. }
  5.  
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: Flashlight script
« Reply #18 on: January 25, 2012, 09:40:07 PM »

I don't understand the question. It's showing the image you assigned to the entities.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Flashlight script
« Reply #19 on: January 25, 2012, 10:11:14 PM »

Well you know in the normal script, it has the circle for a light. With this new script, it is not displaying the circular flashlight look, only the squares.
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Flashlight script
« Reply #20 on: January 26, 2012, 07:01:11 AM »

Nevermind, I got it working. Thank for the help !
Logged
Pages: 1 [2]  All
 

Page created in 0.679 seconds with 23 queries.