I wrote up a
tutorial over on
pointofimpactjs.com. I've seen several people ask how to do this, so I hope it helps. Best!
*UPDATE*
Plugin is now live on
github.
Looks really cool the way you did that with inject. But yeah, gets complicated with scaling up the game by a factor of two.
well written and useful, quid. thanks.
Thanks for the kind words!
I updated
my tutorial and fixed the plugin so that it'll scale relative to any game scale. I'll have plugin up on github soon.
Good job, quid. thanks. in use already on our side.
1 decade ago
by Aitor
Great plugin! I have one question: how does this affect to the performance?
Plugin is now live on
github. I added offset support and fixed it so that the plugin properly re-positions the Entity after scaling it. I also updated the
PoIJS tutorial.
I updated the documentation on
Github so that others can replicate my code easier.
@quidmonkey Thank you for this! This is an issue I've been trying to solve for a while now!
One issue I am running into is the use of this plugin gives me incorrect coordinates for ig.input.mouse.x/y. Any suggestion on how to account for the offset created by scaling to get accurate mouse positioning?
Page 1 of 1
« first
« previous
next ›
last »