Limit onLaserHit codes to once per frame

Suggest changes and improvements to Algodoo.

Limit onLaserHit codes to once per frame

Postby Frank » Wed Sep 02, 2009 1:28 am

Why are onLaserHit scripts called constantly? It's really annoying. There is NO need for them to be called more than once per frame. I'm trying to do some very cool laser scripting, but this behavior is making things get screwed up and sometimes explode.
Made some cool stuff a long time ago
User avatar
Frank
[Best Tutorial Maker 2010]
 
Posts: 193
Joined: Mon Aug 31, 2009 6:37 pm
Location: the dark side of the moon

Re: Limit onLaserHit codes to once per frame

Postby Rhett97 » Wed Sep 02, 2009 1:34 am

yeah i saw that on my Laser scripting scene when it collides with the laser it it Increases from 10 to 143 instantly...... :cry:
Chronos wrote:There's nothing wrong with swearing. They're just words. People just think they have a bad meaning. What's the difference between shit and poo? Nothing. They're the same.
User avatar
Rhett97
 
Posts: 522
Joined: Mon Aug 31, 2009 10:32 pm

Re: Limit onLaserHit codes to once per frame

Postby Versieon » Wed Sep 02, 2009 1:37 am

I also noticed this, but i wouldn't want the feature to be compleatly removed, it realy comes in handy for other uses.
User avatar
Versieon
 
Posts: 375
Joined: Tue Sep 01, 2009 4:45 pm

Re: Limit onLaserHit codes to once per frame

Postby Conundrumer » Wed Sep 02, 2009 2:34 am

I think you can figure out how to get around this problem.
Also, this is how my beam splitter works 8D
User avatar
Conundrumer
 
Posts: 344
Joined: Mon Aug 31, 2009 5:55 pm
Location: NYC

Re: Limit onLaserHit codes to once per frame

Postby kilebantick » Thu Sep 03, 2009 9:54 am

Wouldnt this mean that the results would vary on a computer that is getting 10FPS, and a computer getting 800+FPS?
Image
User avatar
kilebantick
 
Posts: 1267
Joined: Tue Sep 01, 2009 9:50 am

Re: Limit onLaserHit codes to once per frame

Postby Sniperkasa » Thu Sep 03, 2009 2:17 pm

I havent found any such problems.. atleast yet
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: Limit onLaserHit codes to once per frame

Postby Rhett97 » Thu Sep 03, 2009 4:22 pm

Well i mean it would eventualll cause problems once people start making GIANT laser computer :ugeek:
Chronos wrote:There's nothing wrong with swearing. They're just words. People just think they have a bad meaning. What's the difference between shit and poo? Nothing. They're the same.
User avatar
Rhett97
 
Posts: 522
Joined: Mon Aug 31, 2009 10:32 pm


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests

cron