Taterchipz's Recent Forum Activity

  • I have an enemy running around in a circle. The enemy will break this circle when the player enters its line of sight. Upon the player leaving the line of sight of the enemy, the enemy will resume its circle at the new point. How would I get the enemy to return to its original position and resume its circle again?

    The circle is coded as such:

    ----------------------------------------------------------------------

    Every Tick:

    enemy: >Move forward 1.5 pixels

    >Set angle to enemy.angle+0.96 degrees

    ----------------------------------------------------------------------

  • Ah, thank you for your help!!! The timer is quite useful.

  • Wow, cool, thanks, it works perfectly. So that I can understand the coding better, what was the issue with the previous code? I know it had something to do with the Wait action, but I am not sure what. Thanks again!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I recently got into Construct 2 and am enjoying it so far. I've gone through the shooter tutorial and am now continuing with the tutorial code, adding in various things to learn more about Construct 2.

    One of the things I've added is a gun power-up which will enable the player to shoot at full auto for 5 seconds. Currently, I am generating it a specific location every 6 seconds (I'll randomize the location later...makes it easier to debug at the moment). The power-up sprite will only generate if there is not one already on the map. I've gotten the full auto feature to work as well when the player collides with the power-up sprite.

    However, I cannot figure out how to limit the full-auto feature to work for only 5 seconds. I've tried a few different things, but, the primary bug is that, while it works great the first time, when the full-auto ends and the player attempts to immediately pick up another full-auto power-up, it will not trigger...I have the code attached. The power-up events are all at the bottom of Event Sheet 1.

Taterchipz's avatar

Taterchipz

Member since 30 Dec, 2014

None one is following Taterchipz yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies