Set sprite height / width not working!

0 favourites
  • 2 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • 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!

    <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?!!

    Thanks! :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)