Register    Login    Forum    FAQ    PinSimDB.org

Board index » Resources » Tutorials, how-to's, bug report and docs




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: LED Flippers Demo
 Post Posted: Fri May 15, 2015 3:02 pm 
Offline
User avatar

Joined: Fri Sep 09, 2011 9:14 pm
Posts: 142
I made a script which uses the Steve's Stop Motion method with Toys to make LED flippers.

Screen:
Image

Download Link:
LEDFlippers.zip
Please scan the file to make sure it has not virus.

The link contains two versions.

The beta version is very limited, it will only allow you to set frames separately, for example:

RightFlipperLED.Frame 1

The other version is more complex and requires C_Array, C_Hash and C_Timer (included in the script).
On this version you can use the same code as above:

RightFlipperLED.Frame 1

But you can also assign frames in this way:

RightFlipperLED.Frames 2, 7, True, 100 ' Start Frame, End Frame, Repeat, milliSeconds

And you can also use C_Array for more complex sequences, for example with this C_Array: FlipperArray --> (1, 5, 3, 2)

RightFlipperLED.FramesByArray FlipperArray, True, 100 ' Frames Array, Repeat, milliSeconds

Or even you can also use a C_Array for the milliseconds, for example if you have this one: TimingArray --> (500, 100, 100, 100)

RightFlipperLED.FramesByArray FlipperArray, True, TimingArray ' Frames Array, Repeat, Timing Array

But this last method with TimingArray usually generates lag.

To avoid bugs I recommend to always use RightFlipperLED.Clear before using Frame, Frames or FramesByArray.

Hope you enjoy. I'm a mad scripter! :lol:


Top 
 Profile  
 
 Post subject: Re: LED Flippers Demo
 Post Posted: Fri May 15, 2015 4:21 pm 
Offline
User avatar

Joined: Mon Feb 27, 2012 10:39 am
Posts: 1908
video :lol:

_________________
add me to SKYPE : steve.paradis49


Top 
 Profile  
 
 Post subject: Re: LED Flippers Demo
 Post Posted: Fri May 15, 2015 6:26 pm 
Offline
User avatar

Joined: Sun Oct 05, 2014 11:57 pm
Posts: 405
Way 2 cool. Looks perfect for a RETRO type game.. I will try using it in a game. A similar idea would be to have a flipper/flasher or flipper/bulb so when the ball hits it the entire flipper lights up blue, green, purple.. etc. thanks for making this.


Top 
 Profile  
 
 Post subject: Re: LED Flippers Demo
 Post Posted: Fri May 15, 2015 9:45 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2859
Location: Ontario, Canada
Thanks Wecoc for all your innovations !!!


Top 
 Profile  
 
 Post subject: Re: LED Flippers Demo
 Post Posted: Fri May 15, 2015 10:17 pm 
Offline
User avatar

Joined: Mon Feb 27, 2012 10:39 am
Posts: 1908
very nice effect! how did you figure the speed finally?

_________________
add me to SKYPE : steve.paradis49


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 5 posts ] 

Board index » Resources » Tutorials, how-to's, bug report and docs


Who is online

Users browsing this forum: No registered users and 12 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: