I must be doing something wrong, but I can't seem to be able to resize an image upon placing it on the screen!
<img src="http://tig0r.com/frantic_html5/set_image_height_width_problem.jpg" border="0" />
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?!!
Develop games in your browser. Powerful, performant & highly capable.
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?