mindfaQ's Recent Forum Activity

  • RegexMatchAt(yourstring,"Hi my name is [(\w+)\]\.","i",1) (only works when it's one word, no spaces)

    RegexMatchAt(yourstring,"Hi my name is [([\w ]+)\]\.","i",1) (spaces are allowed)

    RegexMatchAt(yourstring,"Hi my name is [(.+)\]\.","i",1) (any characters are allowed, must be at least one character)

    one of these should do the job, depending on what you need

  • Most of the size will come from images and audio + since you have to include some browser engine stuff into your apk to run your html 5 game, you need to add roughly 20 MB. So a rough estimation would be:

    Size of you game exported to html 5 + 20 MB, I think.

  • you could also do a:

    for each sprite (ordered by sprite.x, ascending): set lowestx to sprite.x; stop loop

    for each sprite (ordered by sprite.x, descending): set highestx to sprite.x; stop loop

    etc.

    set scrollx to (highestx+lowestx)/2

    set scrolly to (highesty+lowesty)/2

    and calculate the zoom according to your aspect ratio etc.

  • Like this it works (the wait introduces a wait time of 1 frame after freeze until the touch gets unlocked again, means clicks during the freeze will have had no effect)

    I'd still suggest writing the code in a way that doesn't freeze up your game.

  • Normally they are, if you have no wait actions etc in them.

  • var = 1

    some event:

    var = 1

    call function

    on function:

    do stuff

    var = 0

    var = 0

    trigger once:

    set text: "the function has finished"

    (or use wait for signal and signal)

  • easiest would probably be only using your event 35 and after the third action add

    * wait 1.0 sec

    * set bullet speed to 50

  • array for each x element

    array current value < my date:

    * set array at (array.curx, 0) = 0

    * set array at (array.curx, 1) = 0

    setting to 0 is not deleting, but I guess you know that ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I forgot to support minus numbers, so it could be this instead, probably:

    RegexMatchAt(str(yournumber),"-?(0|([1-9]\d*))(\.\d+)?","g",0)

  • You could also use regex:

    RegexMatchAt(str(yournumber),"\d*(\.\d{1,3})?","g",0)

    (yournumber is the variable containing your number). If you always want 3 digits at the end, you have to rewrite it.

  • GLaDOS from Portal 1+2

    Clementine from The Walking Dead

    Guybrush Threepwood from Monkey Island

    Sonic from the Sonic Games

    April from The Longest Journey

    Fate from Mirror's Edge

    Rock Man / Mega Man

    Dislike Mario and most of the other characters from the Mario Universe - so dull, boring and one dimensional.

mindfaQ's avatar

mindfaQ

Member since 12 Oct, 2013

None one is following mindfaQ yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies