How do I force a sprite to retain it's size and not scale

Get help using Construct 2

Post » Sat Oct 18, 2014 7:02 pm

Is it possible to have a sprite retain its absolute size regardless of the size of the window?


An example would be a button that needs to be 50x50 pixels regardless if it's on a phone, desktop, or movie theatre.

If there is nothing native, is there a way to add or subtract the difference in scale compared to a layer? Something like, if layerscale > 100% -> sprite scale = sprite scale - ( layerscale - 100% )
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Sat Oct 18, 2014 7:13 pm

Every tick set sprite size to (50*OriginalWindowWidth/WindowWidth, 50*OriginalWindowHeight/WindowHeight)
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Sat Oct 18, 2014 7:18 pm

sweet thanks!
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730


Return to How do I....?

Who is online

Users browsing this forum: mindragon73 and 18 guests