Stretching an Actor based on Mouse X and Y

Hi there Stencylers!

A quick question; Is there a way to stretch an actor based on X and Y of the mouse while it stays in position?

Basically I have something similar to the old school Mario 64 game, where you can click on a part of the characters head and stretch it around the place, while that piece still stays in a same position.

https://www.youtube.com/watch?v=Nn-Rz6lBGW0

Any thoughts, or solutions would be greatly appreciated!

Cheers,
JBG

squeeb

  • Posts: 1560
I had been thinking about this before!  Let me know if you get it. :D
Get distance between mouse and clickable actor.  And do the grow tween math with that distance as a variable.. i think the grow is affected by the origin of actor.. ie center, top left, bottom right ect

Glad to know I'm not the only one interested in this. Yeah, it would be something to do with the "grow" tween, but I'm not sure exactly how to program it.

JBG

JeffreyDriver

  • *
  • Posts: 2168
I did something sort of similar where an actor shrank as you held the button down, and then jumped when you released the button.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

Thanks guys for your help!

The code I am using is below :)