0 Favourites

How do I make player/sprite transform?

  • 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

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I see I see sounds like that could work. Imma mess around with it and see how that goes. Thanks a lot

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,485
DMT2005's avatar
DMT2005
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,811
minhcuong's avatar
minhcuong
Unread hot topic
99 10,130
karshinkoff's avatar
karshinkoff