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

Views: 438

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: Painting laser
Rating: 5
Filesize: 7.86 kB
Downloads: 922
Comments: 0
Ratings: 2
Date added: 2012/07/20 05:45:52
Made with: Algodoo v2.0.0 Edu
Rating: rated 5
download
Title: Hit and miss spawn engine HE model stationary
Rating: 6.8182
Filesize: 47.1 kB
Downloads: 2454
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: 5288
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: Special Laser Cutting Platform
Rating: 5
Filesize: 16.78 kB
Downloads: 2414
Comments: 0
Ratings: 1
Date added: 2011/02/22 13:21:36
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Air refueling 2 - Mouse controlled
Rating: 5.625
Filesize: 47.79 kB
Downloads: 5887
Comments: 0
Ratings: 2
Date added: 2018/03/03 00:49:57
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Hit'n miss engines ALGODOO
Rating: 6.6364
Filesize: 369.1 kB
Downloads: 843
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:
Title Author Rating Downloads Comments Date added
Help PLEASE iliash 5 (1 vote) 85 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!