Browse Search Popular Register Upload Rules User list Login:
Search:
it work now

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 10.06 kB

Date added: 2019-10-07

Rating: 5

Downloads: 159

Views: 40

Comments: 6

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

it work now
the transistor
WS and UPDOWN to change input states
Yay
thamks for the helps
free to use, must give credit
perfectly binary transistor
left is power, middle is control, right is out
ill make a breadboard maybe
Last edited at 2019/10/11 19:25:31 by UnityDogGaming04
Please log in to rate this scene
edit
Similar scenes
Title: Laser Collision Engine
Rating: 6.1111
Filesize: 42.54 kB
Downloads: 1307
Comments: 7
Ratings: 3
Date added: 2011/09/15 21:48:32
Made with: Algodoo v1.9.9b
Rating: rated 6.1
download
Title: Challenge 3 solution
Rating: 5.625
Filesize: 469.38 kB
Downloads: 315
Comments: 1
Ratings: 2
Date added: 2010/01/26 02:47:14
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
Title: Compressed engine concept (WIP)
Rating: 5.375
Filesize: 62.75 kB
Downloads: 658
Comments: 1
Ratings: 2
Date added: 2019/05/15 19:21:45
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Timer, why it doesn't work?
Rating: 5.625
Filesize: 8.52 kB
Downloads: 447
Comments: 1
Ratings: 2
Date added: 2009/07/19 23:02:27
Made with: Phun
Rating: rated 5.6
download
Title: roller coaster with loop!!!
Rating: 5.625
Filesize: 94.53 kB
Downloads: 1120
Comments: 0
Ratings: 2
Date added: 2009/06/25 21:42:19
Made with: Phun
Rating: rated 5.6
download
Title: Dominos and marbles!
Rating: 5
Filesize: 96.51 kB
Downloads: 307
Comments: 0
Ratings: 1
Date added: 2016/04/17 11:37:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
When you are testing for true or false, you do not use equal signs. This is how you do it:

scene.my.a0 ? {Do this if true}:{Do this if false}

When testing for a numeric value or for text, you then use two equal signs like this:

scene.my.variable == 3.14 ? {}:{}

or
scene.my.variable != 3.14 ? {}:{} The explanation sign is the NOT symbol.

scene.my.variable == "This Text" ? {Do this if text matches exactly}:{Do this if text does not match exactly} Text always must have quote signs at beginning and end of text.
(e)=>{
{
scene.my.a0 = true
}(?)({
color = [0, 1, 0, 1]
});
{
scene.my.a0 = false
}(?)({
color = [1, 0, 0, 1]
})
}
nope

first, to compare values you have to use ==, like "scene.my.number == 2? {}:{}"

then, if using booleans you can use "scene.my.bool == true? {}:{}" or just "scene.my.bool ? {}:{}"

Also, the {}:{} means that it will do what is specified in the first {} if the condition is true, and it will do what is specified on the second {} if it is false, so you just need to ask if scenemy.a0 is true and then you can use both {}'s for color changing

you're missing the : in between the {}'s, using a single =, and adding a } after the ?.

your code should be

(e)=>{
scene.my.a0? {color = [0, 1, 0, 1]}:{color = [1, 0, 0, 1]}
}
Last edited at 2019/10/08 04:36:20 by The Linkage
HOW DID I MISS THAT OMG
fixing it right now lol
had to fix it twice thanks for the help fellow humans
reposting it
One more suggestion.... Disable those annoying Algodoo clouds! LOL
oh didnt notice the clouds
fixing it now lol