Question about game logic and setup

0 favourites
  • 4 posts
From the Asset Store
A whole set you need to create a gorgeous winter 2d game
  • Hi folks,

    I feel that my event sheets start to be a little bit confusing but I think it's normal for a newbie.

    I'd like to understand from the oldies ones which is the proper way to organize the event sheets. For example I have a spaceship which tilts (I'm still struggling to make it tilts on touch but it's tilting on the keyboard).

    I introduced different powerups which change the look of the spaceship. This means that when I collect a diamond, the look of the ship changes BUT when it tilts, it's tilting with it's old look.

    Do I have to create one tilting animation of every look of the spaceship and than create, for every look, a set of events for the tilt and move commands?

  • What kind of logic did you use for the tilting?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is the code i'v used

  • You will need of course an animation for each of the skins but for left/right you flip the same animation. For setting it you could simplify in events with naming convention for the animations with a variable.

    For example on movement, you would have animation name of "Default Idle" and "Diamond Idle". Then the event block is to set animation to ship.variable&" Idle". Then if you change the instance variable on the player depending on power up, to Default (no power up) or Diamond etc you can use the variable to change the animation.

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