How do I make player/sprite transform?

Get help using Construct 2

Post » Tue Mar 31, 2015 6:04 pm

Hey guys I was wondering if anyone knows how to make player or sprite image transform into a different sprite image? Good example is I wanna have it so if you click on or tap on an icon image the player ship or whatever it may be will show some cool tranformation effect and then after the animation is done its a different sprite image. Thanks for the help
B
10
S
2
Posts: 69
Reputation: 752

Post » Tue Mar 31, 2015 9:40 pm

There are several ways..

I would just grab the current X,Y (and angle unless its always facing one way as in a side scroller) position of the player somewhere in its transforming state and then use an event that triggers at the appropriate time in the transition and spawns the new sprite at that time at those coordinates.

You could also fire an event off the player sprite that uses action [Spawn another object] and choose the appropriate image point for where it come in (usually center 0). You could pop it in at end of transition, start it off invisible and then change to visible at end of transition, or start at opacity 0 and slowly fade it in by incremental opacity changes..

it really depends on the look your going for.

In my space shooter linked in my signature below all the available weapons are always attached to the player from the start of the game. I simply turn them visible when they are activated and back invisible when deactivated. That said, you could have all the available sprites pinned to your player with position and angle from start and simply set the ones you want visible at the appropriate time while setting the Player/last transition to invisible.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
55
S
15
G
8
Posts: 610
Reputation: 8,796

Post » Wed Apr 01, 2015 5:49 am

I see I see sounds like that could work. Imma mess around with it and see how that goes. Thanks a lot
B
10
S
2
Posts: 69
Reputation: 752


Return to How do I....?

Who is online

Users browsing this forum: Phacanu, psp321, Solomon, the_Shit_hawk and 9 guests