Laser "onLaserHit" bug?
3 posts • Page 1 of 1
Laser "onLaserHit" bug?
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
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
-

Xray - Posts: 501
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
Re: Laser "onLaserHit" bug?
Not a bug. It's because procedure called from outside object.
Use e.laser._V in onLaserHit/onHitByLaser events instead.
Use e.laser._V in onLaserHit/onHitByLaser events instead.
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: Laser "onLaserHit" bug?
Kilinich wrote:Not a bug. It's because procedure called from outside object.
Use e.laser._V in onLaserHit/onHitByLaser events instead.
Thanks!
-

Xray - Posts: 501
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



