dragging an objects size

For questions about using Classic.

Post » Tue May 20, 2008 6:12 pm

I am just wondering how exactly i would go about making an objects size change when i click a corner and pull it out, (resizing things).
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Tue May 20, 2008 7:32 pm

Maybe Image points set for each corner, and resize to the position of the mouse/object.
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Tue May 20, 2008 8:14 pm

Well you can just change the pivot placement, but its more complicated than that i tried to make this kind of drag&resize but its little tricky...

Yet i made it

[url:u9neqxo6]http://www.mediafire.com/?jdiytxyvbpm[/url:u9neqxo6]

Press:
1 - to resize left top corner
2 - to resize right top corner
3 - to resize left bottom corner
4 - to resize right bottom corner

You can make the grabbing detector by adding
"MouseX=>Sprite.Left ^ MouseX=<Sprite.Left+50" & "MouseY=>Sprite.Top ^ MouseY=<Sprite.Top+50" So it will grab the Left Top corner.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Tue May 20, 2008 10:09 pm

This is Rough, but easy

http://www.mediafire.com/?ntgltgzdpry

This way you can do it with very nice details. And Awsome grafics
I did only topleft because .. ITS bedtimeeee !!!!
I have no time left to do the Middles and other Corners.
But i hope i gave u a direction to work in.

http://www.mediafire.com/?lwmjthifwmf

Oh ashley ? will release 1. have private event sheets ? : ) plz ?

j0h
B
3
S
2
G
4
Posts: 322
Reputation: 2,119


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests