Browse Search Popular Register Upload Rules User list Login:
Search:
Laser Hit & Miss

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 11.68 kB

Date added: 2017-08-02

Rating: 5

Downloads: 442

Views: 205

Comments: 8

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is a response to a help question from user "iliash".

This is about as simple as you can get. The global variable named scene.my.val gets switched from zero to one, but you can control anything in place of that variable.

There is one line in the laser which makes the laser rotate, and you can ignore it. That line is: rotation = rotation + 0.1
Last edited at 2017/08/02 05:59:18 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: Laser Hit And Miss
Rating: 5.625
Filesize: 21.31 kB
Downloads: 277
Comments: 7
Ratings: 2
Date added: 2016/11/10 07:52:33
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Simple Hit And Miss Engine
Rating: 6.4
Filesize: 34.14 kB
Downloads: 2211
Comments: 4
Ratings: 4
Date added: 2013/11/13 03:23:15
Made with: Algodoo v2.1.0
Rating: rated 6.4
download
Title: Painting laser
Rating: 5
Filesize: 7.86 kB
Downloads: 611
Comments: 0
Ratings: 2
Date added: 2012/07/20 05:45:52
Made with: Algodoo v2.0.0 Edu
Rating: rated 5
download
Title: Advanced Laser Cutter
Rating: 5.25
Filesize: 252.25 kB
Downloads: 560
Comments: 2
Ratings: 2
Date added: 2015/08/22 13:13:38
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
Title: Hit'n miss engines ALGODOO
Rating: 6.6364
Filesize: 369.1 kB
Downloads: 763
Comments: 3
Ratings: 5
Date added: 2011/07/06 14:58:19
Made with: Algodoo before v1.8.5
Rating: rated 6.6
download
Title: Sequenced Laser Cutter
Rating: 5
Filesize: 26.14 kB
Downloads: 1490
Comments: 0
Ratings: 2
Date added: 2011/02/20 18:13:56
Made with: Algodoo before v1.8.5
Rating: rated 5
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
Help PLEASE iliash 5 (1 vote) 52 6 2017/07/30 15:03:41
show grid
I have camps from the other other account so can you just ban this one and unban the new one. Last request.
No. No more banning and unbanning. Once time is all you get. Sorry...
So, can I open a Battle Engineer,... Xray? :)
A WHAT? :s I don't have a clue what a Battle Engineer is.
Don't you remember Xray?
Oh nevermind, I think I can open 2 accounts now! :)?
wow:o
I cant find anywhere in this scene the code that actually detects when the laser and box collide and not collide.
The code is in the laser. onLaserHit is what detects when the laser beam hits an object. During that time, a timer is forced to a value greater than zero, and when the laser is no longer hitting the object, the timer gets reduced down to zero. The combination of onLaserHit and the timer is how this code works. If you can do it a different or more efficient way, please let me know!