Hi,
i would like to change the origin of a sprite, but in an appli, for zooming on this point.
i try Hotspot, but i can only clic a time. At the second clic, nothing happend.
i add two slidebars to change origin and all is good.
I don't understand why it'wrong with clic on sprite.
here is a capx.
svt.dahu.free.fr/zoom/zoom3.capx
An idea please?
Develop games in your browser. Powerful, performant & highly capable.
I didn't look at your capx but, if I understand you correctly, you should scale the layer
System > Set Layer Scale ( for zoom )
and use
System > Scroll to postion > sprite.X, sprite.Y ( to zoom to specific point )
Thank's for your answer but it zoom on the default origin of the sprite, without change this origin when i clic on a specific point of the sprite.
I'm unable to open your capx, seems to be something wrong with the "sprite"-plugin (Did you edit it?)
You can't change the origin of the sprite, but maybe you could calculate the offset of mouse.x,mouse.y to the origin on mouseclick and use that as your center for zooming?
Hi!
my capx don't open because i use an other version of the plugin "sprite", which integer an action "hotspot".
( ftpperso.free.fr/zoom/sprite.zip )
i'll try with your idea but i don't know how center for zooming to a specifix point.