Laser "onLaserHit" bug?

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Laser "onLaserHit" bug?

Postby Xray » Fri Jan 11, 2013 3:14 am

I created a simple scene in which a laser onLaserHit writes values to local variables located within the laser but it does not seem to work. I can only write to global "scene.my" variables. Is this a known bug, a previously unknown bug, or does it work as intended? If it works as intended, WHY was it designed this way?

BTW - I did a search before posting this, and was not able to find any other post related to this problem. Sorry if I missed one.

Xray
Attachments
Laser Hit bug.phz
(18.32 KiB) Downloaded 29 times
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: Laser "onLaserHit" bug?

Postby Kilinich » Fri Jan 11, 2013 8:47 am

Not a bug. It's because procedure called from outside object.
Use e.laser._V in onLaserHit/onHitByLaser events instead.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Laser "onLaserHit" bug?

Postby Xray » Fri Jan 11, 2013 6:19 pm

Kilinich wrote:Not a bug. It's because procedure called from outside object.
Use e.laser._V in onLaserHit/onHitByLaser events instead.


Thanks! :thumbup:
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests