Adding to object size

Get help using Construct 2

Post » Mon Aug 05, 2013 5:44 am

Im remaking the fish game where you eat smaller fish to get bigger. I have it so every time you come in contact with fish, it adds 1 to player.Width, and player.Height. It is growing the fish horizontally then vertically and it is just being really glitchy. Anyone have a fix?
B
9
S
1
Posts: 42
Reputation: 622

Post » Mon Aug 05, 2013 6:08 am

Instead of adding 1 to with and height. Set scale to > Scale+0.1
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Mon Aug 05, 2013 6:09 am

[QUOTE=taborgreat] Im remaking the fish game where you eat smaller fish to get bigger. I have it so every time you come in contact with fish, it adds 1 to player.Width, and player.Height. It is growing the fish horizontally then vertically and it is just being really glitchy. Anyone have a fix?[/QUOTE]

Maybe you shouldn't add 1 to both width and height (except if the height and width of your fish are equal). If that is not the case, adjust the values:

For exemple, for a 16x32 fish you would:

add 1 to width
add 1*(32/16) to height

Or maybe I misunderstood the problem
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Mon Aug 05, 2013 6:27 am

Here is a link to the game so you can see the problem (bad graphics xD)

Link : http://thplay.weebly.com/test.html
B
9
S
1
Posts: 42
Reputation: 622

Post » Mon Aug 05, 2013 6:58 am

I just tried the game and I didnt see anything going wrong.
B
10
S
4
Posts: 133
Reputation: 1,543


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests