Maverick1912's Recent Forum Activity

  • Two On start of layout conditions were happen at the same time.

    On that time the Array is not load the JSON from the AJAX.

    You should have a call after the AJAX completed, like a button to click and call the random from Array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should save to LocalStorage before you call the function quit game.

    And try to log the value of LocalStorage to see it.

  • Thank you R0J0hound

    I found that the "^" in JS will be "**".

    Because the eval(x^y) is not correct but I replace "^" with "**", it will be correct.

    eval("2^3") = 1 (incorrect)

    eval("2**3") = 8 (correct)

  • Hello jsutton and R0J0hound

    It's me to bother you guys again.

    I have time to come back this.

    I have a string "4^5+3^2 + 6 - 2^3"

    Do you know how to remove the ""? To turn it to:

    str(4^5+3^2 + 6 - 2^3)

    Thanks again for your help!

  • Wow, very appreciate with your help!

    Maybe I will find something interesting there.

    Thank you again!

  • Sorry to make you confused.

    My app like a karaoke app, allow user to record their voice with the music.

  • Thanks, I have a video play in the app, the I will talk to create an audio has my voice and the music.

    I used User media to record my voice but it can't record the sound from the video.

  • Hello, I have a video to play with music and I would like to record the audio from video and microphone.

    Do you have any idea?

  • Hello all,

    I made a form that users can choose a file(image/audio/video) then upload to our server with PHP.

    Everything works well with files that have size < 1MB.

    The files are bigger than 1MB will be rejected.

    I add these in the PHP but nothing change:

    ini_set('upload_max_filesize', '10M');

    ini_set('post_max_size', '10M');

    ini_set('max_input_time', 300);

    ini_set('max_execution_time', 300);

    Appreciate with your expertise!

    Tagged:

  • I usually go with these steps:

    pinTileX = Tilemap.PositionToTileX(pin.X)

    pinTileY = Tilemap.PositionToTileY(pin.Y)

    touchTileX = Tilemap.PositionToTileX(Touch.X)

    touchTileY = Tilemap.PositionToTileY(Touch.Y)

    distance(Tilemap.TileToPositionX(pinTileX), Tilemap.TileToPositionY(pinTileY), Tilemap.TileToPositionX(touchTileX), Tilemap.TileToPositionY(touchTileY))

    Hope it could help!

  • You can put all of them into an Array.

    Then load with Array.At(random(0,Array.width-1))&".png".

  • If you check the JSON file, I removed the rgb().

    When you run the debug mode, you will see the different of 2 array.

    The bgColorEvents at 0 will be 10656511 instead rgb(255, 154, 162).

    So I think the Color of the BG when your get from the bgColorArrayEditor is just a string "rgb(255, 154, 162)" not a color.

    Then I break it to separate numbers R, G, B.

    When get from bgColorArrayEditor with randomY, example ramdomY = 0:

    - tokenat(bgColorArrayEditor.At(0,0) = "255, 154, 162"

    - R : int("255, 154, 162", 0,",")) = 255

    - G : int("255, 154, 162", 1,",")) = 154

    - B : int("255, 154, 162", 2,",")) = 162

    Then put all params inside the rgb() to make it a true color.

    Hope this is clear for you!

Maverick1912's avatar

Maverick1912

Member since 13 Nov, 2014

Twitter
Maverick1912 has 17 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x8
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies