How do I keep my sprite from re-sizing itself?

0 favourites
  • 12 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • I have a single sprite in my program that keeps spawning into the layout at a consistent size. It doesn't seem to be registering any size or scaling change I make to it when the layout runs. I can't recreate this problem with any of the other sprites and I don't have a clue as to what is causing this or why.

    Help please! <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Capx?

  • no, no capx, not caproj.

    Though, I'm still on r158, not r158.2, so I wouldn't be able to open it. Anyone with r158.2 could though.

    Actually, you could just upload your project folder, that would work for me. That's the folder that contains your .caproj file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, sorry man, never uploaded a capx or caproj to someone before. it's the "Boom Boom" Sprite by the way. Sorry. haha here's the full project files

  • Please do a "Save as Single File" instead of sharing the caproj folder.


    is all teh files in folders for easy access.

    A CAPX

    is all the files in a compressed ZIP file for easy moving around.

  • Thanks Jayderyu, I've got it all set now, he's the link for the capx. Done as instructed

    Thanks for working with me here guys

  • I tried to look at your capx, but I can't tell what is actually meant to happen...

    The 'BoomBoomb' sprite is already there, and it's massive. When you click, it spawns in smaller...

    What's meant to be happening?

  • I didn't see anywhere that you were adjusting the size of boom_boom. You were setting the scale, but scale is non relative: if you keep setting the scale to the 0.5 every tick, that's not going to halve the size of the object; it'll just set it to half the size once.

    Also, you had a trigger combined with 'once every 0.01 seconds'; in this case, you need neither. Replaced it with a simple 'every tick'.

    I added the fade behavior to boom-boom. Deleted 'on created: wait x secs then destroy'. Fade has a built in 'destroy' command that runs when it's done fading. Great for explosions.

    The boom-boom sprite was spawning way too big. Set it to spawn at 40,40 size.

    Also, you were sending your walls/block off at random angles. No. Take a look at the modified events 7 and 9 on the Bubble_gum_bomb sheet. Neat trick: if you remove the 'random(170,190)' part, the walls/blocks will suck INTO the explosion.

    I also did something else I don't remember. Keep an eye out for it.

    I tweaked some of your settings -- timescale, etc -- to make my example clearer. Here's the capx:

    Finally, you need more boo...erm bobs. WAY more bobs. We should be mowing down these insidious little malcontents by the bucketful. physics enabled bobs?


    P.S.: I simply cannot resist:

    . . .

    DOLE KNOWS!!! <img src="smileys/smiley11.gif" border="0" align="middle" />

  • aha! It was the scale every .X seconds. I thought it would expand the BoomBoom while it was in exsistance. Arg! I picked up construct after letting it aside for a few months. Thanks very much TiAm!

    I like that idea about the walls being sucked into the explosion.

    And you are right on the bobs, that is my goal now that this river has been crossed. Many physics enabled bobs, You will see crowds of them thrown about amoung the blood spray. lmao

    TiAm, I'm moving into alot of territory with this game that I haven't covered before or did months ago. Could I find you for help again if needed? I promise I wont throw anything your way until I've beat my head against a wall for a few hours or days first.

    P.S. DOn't resist. lol. I should explained more, I was trying to make an expanding sprite so when the gumball impacts and explodes into a crowd of bobs they would be flung into the air and away from the impact like opening a can of crazy snakes. Having exploding and imploding GumBombs to choose from would be amazing! I love the imploding idea!

    Again, would love to keep in touch

  • bobdole21:

    Sure, drop me a line whenever. If I don't answer for awhile...I'm probably working on my own game. But I'll get back to you. Glad I helped, and good luck. Physics enabled bobs sound great... <img src="smileys/smiley1.gif" border="0" align="middle" />

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