Digitalsa's Forum Posts

  • First of all, I am new to Construct 2 and prior to asking this I have looked through various threads and experimented with numerous movement types including; Sine, Custom Movement and Bullet to achieve this effect to no avail.

    I've created a JSFiddle to show you exactly what I am trying to do here: jsfiddle.net/cCfDb/ � basically as you can see the ball is bouncing consistently in a sine type movement. How would I go about replicating this JSFiddle example I've created in Construct 2? As my example is HTML5, is there perhaps a way I can use some of this code?

    To put it simply, the ball needs to bounce off each wall, there are 4 walls (1 top, 1 bottom, 1 left and 1 right). And it just needs to hit a different part on each wall every time it hits it. So it needs to go around in a circular part, it can't go up and down (just essentially like my linked example).

    Any help would be gratefully appreciated. If I didn't provide enough information, please let me know and I can provide whatever I can to help you assist me. I hope to be proficient in Construct 2 soon, so I too, can help others like myself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am relatively new to Construct 2, so bare with me if this is a simple problem I am trying to solve here.

    I am essentially creating a game where you hold your finger down on the screen (on a particular object which is a button) and a timer counts down from 3 before the game starts. If you lift your finger before the timer is finished, the timer resets and the game doesn't start.

    For reference I am using the wonderful TimeManager plugin for Construct 2 for the countdown functionality.

    Pseudo-code for reference:

    While finger is being held down and touching object {

        Timer counts down from 3 seconds

    }

    If (finger is lifted off of the object before the timer reaches zero) {

        Stop timer counting and reset to 3 seconds

    }

    What is the best way I can achieve such a thing? Are while loops able to support multiple events? The syntax isn't all what I am used too compared to other languages like Javascript or PHP.