Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by quidmonkey

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.

1 decade ago by stahlmanDesign

Looks really cool the way you did that with inject. But yeah, gets complicated with scaling up the game by a factor of two.

1 decade ago by alexandre

well written and useful, quid. thanks.

1 decade ago by quidmonkey

Thanks for the kind words!

10 years ago by quidmonkey

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.

10 years ago by alexandre

Good job, quid. thanks. in use already on our side.

10 years ago by Aitor

Great plugin! I have one question: how does this affect to the performance?

10 years ago by quidmonkey

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.

10 years ago by quidmonkey

I updated the documentation on Github so that others can replicate my code easier.

8 years ago by Zetaphor

@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 »