Search found 3 matches

by 8bit
Sun Jan 07, 2018 12:10 pm
Forum: Support and Development
Topic: Scale camera using the mouse cursor as an origin
Replies: 4
Views: 5059

Re: Scale camera using the mouse cursor as an origin

Thanks for your time, I got it working.
I will post as my project evolves, thanks again!
by 8bit
Sat Jan 06, 2018 7:25 pm
Forum: Support and Development
Topic: Scale camera using the mouse cursor as an origin
Replies: 4
Views: 5059

Re: Scale camera using the mouse cursor as an origin

This cleared my confusion, but I still can't get it to work. Can you help me apply it to my camera module, I don't want my main filling up so fast. Yes, after I get the zoom fixed I will clean up my code. I just wanted to get something working to start from. Also, I prefer to keep the camera moving ...
by 8bit
Fri Jan 05, 2018 10:52 pm
Forum: Support and Development
Topic: Scale camera using the mouse cursor as an origin
Replies: 4
Views: 5059

Scale camera using the mouse cursor as an origin

Here is my code: https://pastebin.com/raw/nN3p2GSp I can't figure out a way to zoom in, using the mouse position as the origin instead of (0,0). I've been trying to add/subtract mouse values from the transform, as suggested by other people, but nothing seems to work properly. Can someone that has ex...