[1.8.5] laser script bug
4 posts • Page 1 of 1
[1.8.5] laser script bug
here's the example scene of the bug:
how to get the bug:
first start the scene, and see how it reacts
on second run (doesnt matter if it's second or first run), copy the laser a little to the right first
the lasers should react the same, but the script of the copied laser, works for the first laser.
btw, if the laser script isn't working in the first laser at the first run, (also a bug), open the laser menu, click onto the box where the script is inserted, then press enter.
This is also how to get the other laser working after copying
how to get the bug:
first start the scene, and see how it reacts
on second run (doesnt matter if it's second or first run), copy the laser a little to the right first
the lasers should react the same, but the script of the copied laser, works for the first laser.
btw, if the laser script isn't working in the first laser at the first run, (also a bug), open the laser menu, click onto the box where the script is inserted, then press enter.
This is also how to get the other laser working after copying
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
-

Bronie12345 - Posts: 451
- Joined: Mon Aug 31, 2009 8:52 pm
- Location: The Netherlands
Re: [1.8.5] laser script bug
Good find. I've just simplify that...
How to reproduce:
1) Draw box, fix it to background and put laser near it so laser hit the box
2) Set laser "onLaserHit" to "(e) => {color = [0,0,0,1]}"
3) Save scene
4) run sim
As you can see - script works
Now load saved scene and run sim, script will failed to run.
How to reproduce:
1) Draw box, fix it to background and put laser near it so laser hit the box
2) Set laser "onLaserHit" to "(e) => {color = [0,0,0,1]}"
3) Save scene
4) run sim
As you can see - script works
Now load saved scene and run sim, script will failed to run.
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: [1.8.5] laser script bug
Workaround:
use e.laser.color instead of just color
use e.laser.color instead of just color
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: [1.8.5] laser script bug
well, yeah, i know that works, but still, it's a bug
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
-

Bronie12345 - Posts: 451
- Joined: Mon Aug 31, 2009 8:52 pm
- Location: The Netherlands
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests



