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: 397

Views: 221

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: 1505
Comments: 7
Ratings: 3
Date added: 2011/09/15 21:48:32
Made with: Algodoo v1.9.9b
Rating: rated 6.1
download
Title: Timer, why it doesn't work?
Rating: 5.625
Filesize: 8.52 kB
Downloads: 728
Comments: 1
Ratings: 2
Date added: 2009/07/19 23:02:27
Made with: Phun
Rating: rated 5.6
download
Title: The Linkage's CVT Rescript
Rating: 5
Filesize: 36.25 kB
Downloads: 504
Comments: 0
Ratings: 1
Date added: 2012/09/04 14:07:19
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Horrible Tank Modle
Rating: 5
Filesize: 333.76 kB
Downloads: 371
Comments: 0
Ratings: 1
Date added: 2020/07/06 15:45:54
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: can SOMEbody help me
Rating: 5
Filesize: 27.72 kB
Downloads: 1032
Comments: 9
Ratings: 1
Date added: 2021/08/01 08:14:08
Made with: Algodoo v2.1.3
Rating: rated 5
download
Title: Custom AutoHandGun
Rating: 5
Filesize: 73.44 kB
Downloads: 585
Comments: 1
Ratings: 1
Date added: 2012/05/25 20:36:06
Made with: Algodoo v2.0.1
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