2 issues I'm having...(capx attached)

0 favourites
  • 3 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • Hi all!

    I'm currently having a go at making a platformer type game and have run into 2 issues I just can't seem to fix.

    1) I've got a "column of fire" type object that I want to turn on and off at different intervals (duration and pause times are stored in instance variables). I've set it up with 2 animations: the default one is it's off state and one called "Fire" is a 2 frame animation for when it is activated. I'm trying to get it to activate when it comes on screen and cycle between it's off and on state (so the player has to time his jump to get over it). I don't think I'm approaching this the right way.

    2) I have a boulder type object which I want to start rolling when it comes on screen. I've given it the 'Platform' type behavior because I want it to fall when it gets to the end of a platform. It works ok when there is only one on screen but if another comes on screen the first one stops until the second one is destoyed then the first carries on. Not sure why its doing that!

    Here's the capx if someone could take a look and tell me where I'm going wrong <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://drive.google.com/file/d/0BwoaeB ... sp=sharing

    (Move with the arrow keys, "Z" to jump)

    Thanks!

  • https://www.dropbox.com/s/i90e710z3e6x5tp/TestProject.capx?dl=0

    Take a look at the changes I made to your sample project. The flame column has a new local variable to record the last time its state changed. The "Else" event was what was causing a couple of the issues you saw. I replaced it with specific events. Be careful with the else statement. It's not always the best way to do things.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome, thanks you very much!!

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