sysads's Recent Forum Activity

  • Oh I didn't know that % represents a modulus calculation. Thanks

    Got 2 more challenge I would need your help with.

    1) I managed to create each level buttons but how do I center them all so for different phone sizes, it still centers everything

    img1

    2) In that tutorial, when you swipe, the screen slides slowly to stop but mine with the same configuration swipes and stops immediately, so no slowdown movement. This has to do with the "On DragDrop drop" block

  • I have followed your explanation but stuck somewhere.

    I started with loopindex = 1 so the calculation should be

    1%4 = 0.04 approximately 0

    0 * 300 = 0

    so X = 0

    but when I display what x is to a text, it shows 300px which is confusing me.

  • Thanks man. Any tutorial that explains this so I can read up on it.

  • Thanks for the info. Meanwhile can anyone explain what this values mean actually. been cracking my brain to understand what they mean:

    (loopindex%4)*300

    (loopindex/4)*200

    Thanks

  • I have searched for tutorials online on how to auto create level buttons with star features but most I have seen are vertical and don't scroll.

    img1

    img2

    As seen some buttons are hidden under.

    In landscape, I need to be able to scroll from right to left and vice versa

  • Without the while loop, it works but I need to stop the loop so I added the While Loop and it does not work.

    The wait function appears to causing some issues because when I remove it, the while loop works but its too fast.

  • I have tried your suggestion but stuck with one issue. I created 3 functions each to play different sounds.

    Func_1 - Play sound 1

    Func_2 - Play sound 2

    Func_3 - Play sound 3

    On button click AND system for Array.At(arrcount) from 1 to 5 - xxxx

    I am stuck here on how to call the correct func using this "Func_"&"Array.CurValue"

  • The function is to play a sound.

    I have a function that has 3 sub-events

    Each sub event is checking for the value of the global variable called buttonclicked. So if buttonclicked = the first array value 2, then it plays a sound I need it to play.

    So I expect it to play sound 2, followed by sound 3 etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah I see what you mean. So how do I tell the loop to wait for the first loop to finish before the second etc?

  • Array in debug mode

    I just replaced the values 2,1,3 with 2,4,6

  • I am adding the values like this for a test.

  • I did try that at first but in debug mode, the array shows you this:

    Data: 2,0,0

    instead of 2,1,3

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