Problem Description
hi,
turret behavior range just compare the middle of an object and if middle (or x and y) is in the range then fire..
but in large objects this is a problem ... because maybe some of an object is in the range but still middle is not in range and in real life if some of the object is in range then turret can fire..
thanks
Attach a Capx
[attachment=0:2x08d82w][/attachment:2x08d82w]
Description of Capx
in my capx file you can see this problem .. the object is in range but the turrets not firing..
but if you move the object more near to the turrets .. when middle is in range then turret firing..
this is a big problem when we have large and small targets
Steps to Reproduce Bug
- make a sprite with a big size
- make that sprite to target of a turret
- you can see the bug
Observed Result
the turret range just use x and y position for checking the target is in range or not
Expected Result
turret must check all of an object for checking the target is in range or not
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
windows 8.1 pro 64bit
Construct 2 Version ID
r173