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

Views: 365

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: 397
Comments: 7
Ratings: 2
Date added: 2016/11/10 07:52:33
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Painting laser
Rating: 5
Filesize: 7.86 kB
Downloads: 838
Comments: 0
Ratings: 2
Date added: 2012/07/20 05:45:52
Made with: Algodoo v2.0.0 Edu
Rating: rated 5
download
Title: laser laser laser laser laser laser laser laser laser
Rating: 5
Filesize: 44.22 kB
Downloads: 213
Comments: 0
Ratings: 1
Date added: 2020/03/24 00:16:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Hit and miss spawn engine HE model stationary
Rating: 6.8182
Filesize: 47.1 kB
Downloads: 2375
Comments: 7
Ratings: 5
Date added: 2009/08/18 00:42:55
Made with: Phun
Rating: rated 6.8
download
Title: Old hit'n miss (spawn) engine
Rating: 7.8421
Filesize: 271.37 kB
Downloads: 5120
Comments: 5
Ratings: 13
Date added: 2010/11/03 19:42:19
Made with: Algodoo before v1.8.5
Rating: rated 7.8
download
Title: Hit'n miss engines ALGODOO
Rating: 6.6364
Filesize: 369.1 kB
Downloads: 821
Comments: 3
Ratings: 5
Date added: 2011/07/06 14:58:19
Made with: Algodoo before v1.8.5
Rating: rated 6.6
download
This scene is a response to
show list
Title: Help PLEASE
Rating: 5
Filesize: 8.29 kB
Downloads: 77
Comments: 6
Ratings: 1
Date added: 2017/07/30 15:03:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
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!