"onnolaserhit"
15 posts • Page 1 of 1
"onnolaserhit"
it would be nice if there would be an "onnolaserhit" which performs the opposite of "onlaserhit".
this would be useful in the process of e.g. making realistic infared cars cars in the q-steer collab.
and would obviosly help in a lot more areas as well e.g. the algodoo computer collab.
this would be useful in the process of e.g. making realistic infared cars cars in the q-steer collab.
and would obviosly help in a lot more areas as well e.g. the algodoo computer collab.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: "onnolaserhit"
basically if a laser its runs onlaserhit
if no laser is hitting it then it runs onnolaserhit
and another suggestion would be laserhit change
which if the state of a laser hitting it changes e.g. a laser is shining at an object then it stops then a "onlaseroffhit" ( obviously a better name for it would be used) would be run and obviously one for vice-versa
if no laser is hitting it then it runs onnolaserhit
and another suggestion would be laserhit change
which if the state of a laser hitting it changes e.g. a laser is shining at an object then it stops then a "onlaseroffhit" ( obviously a better name for it would be used) would be run and obviously one for vice-versa
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: "onnolaserhit"
This sound a lot like the onIdle suggestion, where a script is run all the time. You could ask in the onidle if a laser is hitting and get the same result as onnolaserhit, but with many more aplications.
-

Versieon - Posts: 375
- Joined: Tue Sep 01, 2009 4:45 pm
Re: "onnolaserhit"
electronicboy wrote:basically if a laser its runs onlaserhit
if no laser is hitting it then it runs onnolaserhit
and another suggestion would be laserhit change
which if the state of a laser hitting it changes e.g. a laser is shining at an object then it stops then a "onlaseroffhit" ( obviously a better name for it would be used) would be run and obviously one for vice-versa
You mean to make some event occurred on first frame than laser didn't hit something after it hitting something??? It sounds nutz but actually you can do it with semi - transparent prism and scripting
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: "onnolaserhit"
This could cause massive lag if the script runs every step of the simulation.
-

Sonic - Posts: 1467
- Joined: Tue Sep 01, 2009 6:18 pm
- Location: America!!!
Re: "onnolaserhit"
Perhaps you would be able to adjust the frequency?
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: "onnolaserhit"
Sonic wrote:This could cause massive lag if the script runs every step of the simulation.
but only if there's A LOT of script. functions in the console are updating instantly at any time too but although it doesn't lag so i think it would work just fine without lags.

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: "onnolaserhit"
What if you set it so that onnolaserhit it spawns a circle? That means every step you'll get another circle. Pretty soon you'll have 1000-2000 circles.
-

Sonic - Posts: 1467
- Joined: Tue Sep 01, 2009 6:18 pm
- Location: America!!!
Re: "onnolaserhit"
I'm pretty sure that it would be common sense not to put something that could potentially crash Algodoo as a script there.
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: "onnolaserhit"
Sonic wrote:What if you set it so that onnolaserhit it spawns a circle? That means every step you'll get another circle. Pretty soon you'll have 1000-2000 circles.
What's the difference between that and a beacon that spawns circles?
-

Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
Re: "onnolaserhit"
That's a really good way to put it! That would make beacons use even less collisions!
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: "onnolaserhit"
the main use of this would be to set a variable to something if a laser is hitting and object and another if it no laser is hitting.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: "onnolaserhit"
Didn't Standardtoaster or some suggest something like this. I believe it was Onidle
-

niffirg1 - Posts: 376
- Joined: Mon Aug 31, 2009 10:31 pm
- Location: The Great American South!
Re: "onnolaserhit"
Yes, I did suggest that a while ago and a few people supported it.
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
15 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests




