Closed
Description
Added rayHit() function to FlxTilemap that explicitly returns an FlxPoint if the ray hits anything, and returns null otherwise. Default ray() function relies on passing a variable as reference to receive the hit result, which does not seem to work. See http://stackoverflow.com/questions/3708371/actionscript-pass-by-reference
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
FlixelCommunityBot commentedon Sep 13, 2012
#cr0ybot added a commit: AdamAtomic#225
FlixelCommunityBot commentedon Sep 13, 2012
Comment by: moly
This is unnecessary, see: AdamAtomic#224 (comment)
A better fix would be to change:
to
This makes the code clearer and removes an unnecessary new FlxPoint() creation.
IQAndreas commentedon Sep 17, 2012
Resolved by commit e5a7345
Note that the suggestion by @cry0bot may still be used in the future:
#91