Scale/Resize independent of origin?

Discussion and feedback on Construct 2

Post » Wed Dec 07, 2016 9:03 pm

Exactly, is there like a shader that could move the objects position?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Dec 08, 2016 9:05 am

Could I shift the pixels of the image down with a shader without it clipping the borders of the Sprite?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Dec 08, 2016 2:44 pm

I guess I could try a tween, but that would still require the object to be unpinned, wouldn't it?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Dec 08, 2016 7:58 pm

@Zebbi , is this what you try to do ?

https://www.dropbox.com/s/db49ai2mmjoie ... .capx?dl=0
B
33
S
18
G
27
Posts: 2,436
Reputation: 20,336

Post » Thu Dec 08, 2016 9:28 pm

99Instances2Go wrote:@Zebbi , is this what you try to do ?

https://www.dropbox.com/s/db49ai2mmjoie ... .capx?dl=0

Almost, I need to really be able to resize without losing the pin, as the character animations are pinned to it's container box :/
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Fri Dec 09, 2016 12:48 pm

B
33
S
18
G
27
Posts: 2,436
Reputation: 20,336

Post » Fri Dec 09, 2016 2:46 pm


Thank you for that, I wasn't aware of Rex's pin plugin! Now, the way I see it is I could do something like animating the image point on a specific animation if that works with this plugin? I haven't tested yet, but can you reposition a Sprite if it's pinned using this plugin?

Here's the basic idea, a container box, origin center; player animation, origin centre; upon holding down, reduce height of Sprite by 0.1 until, say, 50% shorter (64 pixels until 32, say); the catch is, the feet of the player animations can't leave the ground, which happens if you have the origin centred, it looks like you're squishing into black hole at your belly. So I need to reposition the Xposition downwards by the amount of pixels reduced from its height. Can anything like this be done with this plugin?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Fri Dec 09, 2016 9:54 pm

Even better. Pin to any x,y dynamacaly. Drag it arround.

https://www.dropbox.com/s/6y1pg5yrb9zr6 ... .capx?dl=0



The behavior: http://c2rexplugins.weebly.com/rex_pinoffsetxy.html
B
33
S
18
G
27
Posts: 2,436
Reputation: 20,336

Post » Fri Dec 09, 2016 11:18 pm

99Instances2Go wrote:Even better. Pin to any x,y dynamacaly. Drag it arround.

https://www.dropbox.com/s/6y1pg5yrb9zr6 ... .capx?dl=0



The behavior: http://c2rexplugins.weebly.com/rex_pinoffsetxy.html

@99Instances2Go Thanks for that, getting close! Here's my example: https://www.dropbox.com/s/kal2r7zeuvoo3 ... .capx?dl=0 I've used the rex pin offset, but can't for the life of me figure out how to offset the height change with the plugin, can you see what's needed with this? Thanks again!
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Fri Dec 09, 2016 11:55 pm

B
33
S
18
G
27
Posts: 2,436
Reputation: 20,336

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu, Colludium and 4 guests