Browse Search Popular Register Upload Rules User list Login:
Search:
Key Down/Up Phunlet

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 11.16 kB

Date added: 2012-11-09

Rating: 5

Downloads: 623

Views: 581

Comments: 4

Ratings: 1

Times favored: 0

Made with: Algodoo v2.0.2 Edu

Tags:

Scene tag

Detects any laser Activation Button. Executes code one time for each keyDown or keyUp.

Use:
Replace 'text = _key + "_down"' with your desired keyDown script.
Replace 'text = _key + "_up"' with your desired keyUp script.
If you wish to do something different with each key, then use code similar to this:
_key == "a" ? {text = "a was pressed"}:{};
_key == "b" ? {text = "b was pressed"}:{};
_key == "c" ? {text = "c was pressed"}:{};
Last edited at 2016/07/02 20:54:50 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: Benchmark_v0.2.phz (Phunlet)
Rating: 5.625
Filesize: 23.45 kB
Downloads: 626
Comments: 15
Ratings: 2
Date added: 2010/12/17 14:06:26
Made with: Phunlet
Rating: rated 5.6
download
Title: Car Whit Ragdoll (My 1st phunlet)
Rating: 5
Filesize: 302.02 kB
Downloads: 569
Comments: 0
Ratings: 1
Date added: 2010/04/28 18:09:11
Made with: Phun
Rating: rated 5
download
Title: fight with a phunlet
Rating: 5
Filesize: 9.21 kB
Downloads: 557
Comments: 0
Ratings: 1
Date added: 2009/09/12 19:06:39
Made with: Phun
Rating: rated 5
download
Title: Tactical Nuke [Phunlet]
Rating: 5.625
Filesize: 64.35 kB
Downloads: 4443
Comments: 5
Ratings: 2
Date added: 2012/09/07 19:44:52
Made with: Algodoo v2.0.1
Rating: rated 5.6
download
Title: breakable pillar (phunlet)
Rating: 7.1363
Filesize: 244.44 kB
Downloads: 1154
Comments: 8
Ratings: 22
Date added: 2008/07/21 22:50:15
Made with: Phun
Rating: rated 7.1
download
Title: Phunlet ragdoll
Rating: 5.375
Filesize: 31.21 kB
Downloads: 2117
Comments: 1
Ratings: 2
Date added: 2023/10/12 23:04:32
Made with: Phunlet
Rating: rated 5.4
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
This code knows. faytree 5 (1 vote) 364 0 2012/11/08 10:21:36
show grid
Very good .The script that you wrote is better than me.:tup:
BTW my script is very easy for thyme begginer.
P.S
Please check your desc , you forgot to 'space' between similar and to .
BTW the script is very simple
thanks
s_noonan - Good job! I use a keypress detector invented by Kilinich that uses two lasers per character, but your's is simpler and uses only one laser per character. Two thumbs up! :tup: :tup: