Set sprite height / width not working!

Get help using Construct 2

Post » Sun Nov 17, 2013 8:09 pm

Morning all!

I must be doing something wrong, but I can't seem to be able to resize an image upon placing it on the screen!



This code follows a bullet hitting an enemy ship. Everything works correctly in that the explosion is created (and elsewhere it is destroyed after time), but I can't seem to set the width and height of the explosion to match the enemy ship - it just appears at the size it's set to within the image editor.

So I eliminated the possibility of the enemy ship being the problem, and changed the code so it should resize the image to a random width / height as it is created, but it still gets created at the same size it's set to within the image editor!!

Can anybody see what am I missing?!!

Thanks! :)
B
10
S
4
G
2
Posts: 8
Reputation: 1,896

Post » Sun Nov 17, 2013 8:39 pm

Nothing looks amiss to me, and my tests result in correct results for me. Do you set the size of the ExplosionSprite anywhere else in your events?
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, plinkie and 9 guests