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

Get help using Construct 2

Post » Wed Jan 22, 2014 6:33 am

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:

https://www.dropbox.com/s/07gfp00e4n3t9n0/BubbleGum_ExplosionFadeMod.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?


Cheers,T

P.S.: I simply cannot resist:

. . .

DOLE KNOWS!!!
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Wed Jan 22, 2014 8:08 am

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
B
5
Posts: 8
Reputation: 301

Post » Wed Jan 22, 2014 11:58 pm

@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...
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Previous

Return to How do I....?

Who is online

Users browsing this forum: Microbex, PROxMTswatTR and 16 guests