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

screenshot of the scene

Author: Xray

Group: Default

Filesize: 11.68 kB

Date added: 2017-08-02

Rating: 5

Downloads: 495

Views: 242

Comments: 8

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0


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 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
Similar scenes
Title: Laser Hit And Miss
Rating: 5.625
Filesize: 21.31 kB
Downloads: 312
Comments: 7
Ratings: 2
Date added: 2016/11/10 07:52:33
Made with: Algodoo v2.1.0
Rating: rated 5.6
Title: Painting laser
Rating: 5
Filesize: 7.86 kB
Downloads: 650
Comments: 0
Ratings: 2
Date added: 2012/07/20 05:45:52
Made with: Algodoo v2.0.0 Edu
Rating: rated 5
Title: laser laser laser laser laser laser laser laser laser
Rating: 5
Filesize: 44.22 kB
Downloads: 92
Comments: 0
Ratings: 1
Date added: 2020/03/24 00:16:53
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Old hit'n miss (spawn) engine
Rating: 7.8421
Filesize: 271.37 kB
Downloads: 4525
Comments: 5
Ratings: 13
Date added: 2010/11/03 19:42:19
Made with: Algodoo before v1.8.5
Rating: rated 7.8
Title: Air refueling 2 - Mouse controlled
Rating: 5.625
Filesize: 47.79 kB
Downloads: 5212
Comments: 0
Ratings: 2
Date added: 2018/03/03 00:49:57
Made with: Algodoo v2.1.0
Rating: rated 5.6
Title: Advanced Laser Cutter
Rating: 5.25
Filesize: 252.25 kB
Downloads: 598
Comments: 2
Ratings: 2
Date added: 2015/08/22 13:13:38
Made with: Algodoo v2.1.0
Rating: rated 5.3
This scene is a response to:
Title Author Rating Downloads Comments Date added
Help PLEASE iliash 5 (1 vote) 59 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! :)?
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!