You’ve probably noticed that I’m making quite a few updates recently, this is because Reprisal is in it’s last few weeks of development and the momentum is flowing! This post is a little geeky, but in a nut shell its letting you all know that the cursor has been improved again!
As you can see from the above shot, each tile of the land has it’s own hit area. Before the most current update the engine was not taking into account the exact shape of the tiles and height of them. Hence you got this kind of ‘floating’ unattached cursor. Now with this new shape mapping in place you should fine the cursor is more snappy and attached to the mouse!

Once of the biggest problems was triggering events of the tile buttons after they had been drawn, as a rollover event gets lost. The solution was to use ‘hitTestPoint’ as the buttons were being drawn with the mouse to see if it was over the drawn tile button.
Hooray, this took a lot of head scratching, on paper it seemed easy, but late at night it was a tough one to crack!
5 Notes/ Hide
-
chattanooga5 liked this
-
callmefrancis liked this
-
dekogame liked this
-
fleischparade liked this
- mlmgamedev posted this





