IndieKiwi's Recent Forum Activity

  • So how about every 10 seconds you save a "token" and if the last 6 tokens are invalid sequentially in the minute, you don't get anything, or else you get a extra life?

  • You can extract the data and save it into a file or into a webhost from webstorage, but it seems like it defeats the purpose of webstorage, because webstorage is only your application's data, and you write there, why not write somewhere else in the first place instead?

  • I guess destroy them if they leave the layout or are no longer needed and reduce the collision points and the obvious thing is reducing the physics objects. So as far as i'm aware no real work around.... You could also try another physics engine. (In your project properties)

  • How bad is the lag? Physics objects will slow down a lot if too many like more than 10 - 20 on mobile devices

  • Cool especially like the car simulator.

    Another teacher posted their students C2 work too:

  • I don't see why putting logic and variables on the server would help. You will still need javascript to send data to the server to manipulate the server variables, it just means you can't manipulate them directly? But for generating a high score, you would have to keep a local one and then send it?

  • Cool Interesting game!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • awesome, especially the car one

  • You can't draw from point a to b, you 'll need to stretch the rope instead. So your rope needs to be stretchable or tile-able

  • One day the whole world will be scanned and it'll be turned into a mmo!

  • but...can you please make a screen shot for me?

    i know how to use Regex now but not in C2

    this not working

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
     [/code:1k2oog3c]
     
    Thankyou sososooss much again
    

    I haven't used it in C2 yet, its on my todo list

    Your using RegexMatchCount which is a count method, so with the example, it should return int 3.

    If that doesn't work can u try using "@www\.(.*)\.com@"? Not sure if C2 needs the delimiters, in this case i am using "@" just to keep it simple, i won't go too much into it

    Note: RegexMatchAt and RegexReplace would be more useful than RegexMatchCount

    With RegexMatchAt, it only would return one result so you should do each website one at a time. For example, a list of website urls in a loop

    One last thing i forgot in my last post is the brackets (). inside is what you want to capture. so if you had "www.google.com" with regex pattern "www\.(.*\.com)" RegexMatchAt will return "google.com"

  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:1xfoz14q]
    In the second box, enter this:
    [code:1xfoz14q]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:1xfoz14q]
IndieKiwi's avatar

IndieKiwi

Member since 1 Aug, 2014

Twitter
IndieKiwi has 2 followers

Connect with IndieKiwi

Trophy Case

  • 10-Year Club
  • Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies