sysads's Recent Forum Activity

  • I have created a set of array values as follows:

    Array","parameters":{"x":"0","y":"0","value":"2"}

    Array","parameters":{"x":"0","y":"1","value":"1"}

    Array","parameters":{"x":"0","y":"2","value":"3"}

    I want to loop through each values "2,1,3) on the click of a button so each values is used in a global variable.

    On button click

    For unknown reason, this only picks the first value which is 2 and ignores the rest 1,3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes I know that but feeding the values is where I could not understand. What I have just done now is this as a test:

    Set Array object values as follows: Width = 1, Height = 1, Depth = 3

    On start of layout: set array value at 0 to "2,1,3"

    So in debug mode you see this in array: Data 0 = 2,1,3,0,0

    When I click the button, it only plays the value 2 and ignores the rest values.

    So it looks like doing "2,1,3" is seen as one value rather than 3 separate values.

    How do i insert more than 1 value in the array so it should look like 2,1,3 rather than 2,1,3,0,0

  • How do you set the value in the call function as suggested

    Call OnButtonClicked(X)

    Call OnButtonClicked(Y)

    Call OnButtonClicked(Z)

  • So far I created a global variable called ButtonClicked

    Then I created a func called OnButtonClicked and added sub events as seen below

    https://snipboard.io/hAq8fg.jpg

    Now I have a play button which when I click, I want to be able to play the sequence but how do i pass the sequence data to the function?

    https://snipboard.io/pxhLvl.jpg

  • Hi, I have a 3 sets of buttons (btn1, btn2, btn3) and when you click on each, it plays a different sound. Now I am trying to find a way when I click a different button like play button, this would read an array or Jason file with data like [1],[3],[2] meaning it will auto click btn1, followed by btn3, and btn2.

    Any guide would be appreciated.

  • Sorry was ill (not corona if you are wondering) so just recovering. Thanks for the examples, they really helped.

  • I have 2 objects, one is colored and the other is white.

    I want to spawn the objects randomly like this:

    1) Spawn x amount of white object

    2) Then spawn x amount of colored object

    So think of it like shooting a white bullet and in between colored bullet shoots out also

    Thanks

  • This was what I did at first but issue is when I remove the bullet angle of motion, the balls moves from left to right and not downwards

    So i changed the angle of the invisible spawning object to 90 so it forces the ball to go downwards but when it collides with the paddle, it move upwards and never comes down

  • Hi, I am currently working my way on how the bullet feature works and physics. I have a ball that has only bullet behavior and its spawn at X intervals.

    Each ball bounces of the pad which has only solid behavior.

    The issue am facing is when ball bounces off pad, the ball goes in opposite direction instead of falling downwards as per gravity.

    How do i force gravity on the ball so when it bounces off it slows down upward and then falls downward

    https://snipboard.io/s4nLjK.jpg

  • Hi I am using physics and not bullet but yet its not working as expected.

    https://snipboard.io/K7FPQN.jpg

    Result:

    https://snipboard.io/z4Jgio.jpg

    What could be wrong with this?

  • Hi I am looking to create a simple ball shooting game but in upward direction meaning no gravity. I have tried to use the bullet behavior but when I press down on screen the balls collides with each other.

    If you watch the first 10 secs of this video, I want the balls to shoot like that but upward direction

    Subscribe to Construct videos now

    Can anyone help with this. thanks

  • Thanks, didn't realize it had that feature

sysads's avatar

sysads

Member since 20 Jun, 2015

None one is following sysads yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies