How do I set Sprites position / size based on actual ones

Get help using Construct 2

Post » Tue Apr 08, 2014 12:45 am

Hi...in the events/actions im resizing and moving a lot of sprites from one spot to another, is there a way to set the Size and Position automatically based on the actual Sprites Sizes / position?

i mean a faster way to set those values without selecting each sprite and setting it manually ie. Sprite.Width but numerical (450) | Sprite.Height (100) instead of that Expression...just wondering :)

Image
B
13
S
2
G
1
Posts: 28
Reputation: 960

Post » Tue Apr 08, 2014 11:37 pm

Of course there is. You could tell the game if sprite.x/sprite.y is between X & Y then set size to 2, else set size to 1
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701

Post » Wed Apr 09, 2014 12:05 am

thx for reply :D

i dont want to use the values ingame, i just wonder if there's a way to set the numerical values of the Position and Size of Sprite in the current Layout...not in game expressions.

like the pic, send the values automatically to the window...not write it manually
B
13
S
2
G
1
Posts: 28
Reputation: 960

Post » Thu Apr 10, 2014 2:24 am

Set one, then do Copy paste, it will retain all the values of the original.

Failing that, no :P
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: RIDETHEPIG, Yahoo [Bot] and 8 guests