How to handle scaling for programmatically created elements

For developers using the Construct 2 Javascript SDK

Post » Sun Oct 02, 2016 3:36 am

I'm working on a text animation plugin. Basically i created a div and append it to canvas.

Of course when the window is resized, the div will stay as it is. I want it to be scaled down like the other

Should I copy the div's pixels and draw them to canvas, so i can manipulate it?
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
3
Posts: 292
Reputation: 7,188

Post » Sun Oct 02, 2016 10:15 pm

I would recommend opening up the button plugin to see how they accomplished it. There's quite a bit of doing, to get it correct.
www.h1k3.tech

We are here for you!
B
90
S
24
G
16
Posts: 716
Reputation: 17,032


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests