Throwing
Posted: Wed Nov 12, 2014 4:50 pm
Trying to implement some puzzles where you throw stuff around. Encountering a couple of issues...
1) Is there an onThrow hook?
From the scripting reference I couldn't find a hook that's triggered when the player throws an item. Is there such hook? Or is there some other nice way to get called when an item is thrown. I'd like to for example get the position where the throwing occurred.
2) Throws are random?
One thing I noticed with some (long) throws is that the objects don't always end up in the same place for the same throw. In the screenshots below I throw blue gems to a hole that's 7 tiles forward and 2 tiles down, some gems go in and some hit the top of the hole and fall to the ground, apparently randomly. Wonder if it's a bug or intentional behavior...
Does anybody know anything that could help?
1) Is there an onThrow hook?
From the scripting reference I couldn't find a hook that's triggered when the player throws an item. Is there such hook? Or is there some other nice way to get called when an item is thrown. I'd like to for example get the position where the throwing occurred.
2) Throws are random?
One thing I noticed with some (long) throws is that the objects don't always end up in the same place for the same throw. In the screenshots below I throw blue gems to a hole that's 7 tiles forward and 2 tiles down, some gems go in and some hit the top of the hole and fall to the ground, apparently randomly. Wonder if it's a bug or intentional behavior...
Does anybody know anything that could help?