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

Views: 591

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: Miss Thavel
Rating: 5
Filesize: 70.96 kB
Downloads: 1120
Comments: 0
Ratings: 1
Date added: 2024/05/14 00:52:35
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Simple Hit And Miss Engine
Rating: 6.4
Filesize: 34.14 kB
Downloads: 2647
Comments: 4
Ratings: 4
Date added: 2013/11/13 03:23:15
Made with: Algodoo v2.1.0
Rating: rated 6.4
download
Title: Miss Emily
Rating: 5
Filesize: 55.91 kB
Downloads: 823
Comments: 0
Ratings: 1
Date added: 2024/05/17 23:58:37
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: 2612
Comments: 7
Ratings: 5
Date added: 2009/08/18 00:42:55
Made with: Phun
Rating: rated 6.8
download
Title: Special Laser Cutting Platform
Rating: 5
Filesize: 16.78 kB
Downloads: 2666
Comments: 0
Ratings: 1
Date added: 2011/02/22 13:21:36
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Advanced Laser Cutter
Rating: 5.25
Filesize: 252.25 kB
Downloads: 967
Comments: 2
Ratings: 2
Date added: 2015/08/22 13:13:38
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
Help PLEASE iliash 5 (1 vote) 125 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!