LittleStain's Forum Posts

  • I guess:

    increasing gravity would increase fallspeed..

    increasing density would increase fallspeed..

    decreasing linear damping would increase fallspeed..

  • Through the browser object you can get all the info you want..

    Browser.Title

    The current HTML document's title.

    Browser.Domain

    The current domain, e.g. scirra.com.

    Browser.Hash

    The string after the hash at the end of the URL, including the hash. For example, if the current URL is http://scirra.com/mygame/index.html#teapot, this returns #teapot.

    Browser.PathName

    The path relative to the domain in the URL. For example the path name of http://scirra.com/mygame/index.html#teapot is /mygame/index.html.

    Browser.Protocol

    The current protocol, usually either http: or https:.

    Browser.QueryParam

    Return a query string parameter by name. For example, if the URL ends with index.html?foo=bar&baz=wan, QueryParam("foo") returns bar and QueryParam("baz") returns wan.

    Browser.QueryString

    Return the full URL query string including the question mark. For example, if the URL ends with index.html?foo=bar&baz=wan, this returns ?foo=bar&baz=wan.

    Browser.Referrer

    Get the previous page that linked to this page, if any.

    Browser.URL

    Get the complete current URL in the browser address bar, including the protocol.

  • System compare variable User is not ""

    You might want to look at some tutorials and read the manual..

  • Using the "Button set invisible" action?

    Actually if you want the button invisible on start you could choose to set it invisible in it's properties and only set it visible when needed, or create the button object when needed using a system create action.

    I'm not sure why you would want to use an external script for that..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure why that is, but I always use the ViewportLeft(), ViewportRight(), ViewportTop() and ViewportBottom() expressions

    So instead of Window width/2

    I use

    0,5*(ViewportRight(0)-ViewportLeft(0))

  • Every x seconds counts from the moment you start your program..

    What you describe above is consistent with that..

    Instead you might consider using a timer-bevaviour, set it to 5 seconds

    on timer

    create

    set timer for five seconds

  • Regenerating the obstacle path every tick doesn't sound very usefull

    Add a trigger once condition

    crawl is false

    sytem trigger once

    • solid2 set y to 131
    • regenerate obstacle map
    • find path

    crawl is true

    -- systen trigger once

    solid2 set Y to -100

    regenerate obstacle map

    find path

    -- on path found

    ...etcetera....

    after regenerating the obstacle map, you will have to find the path again..

  • You can check if the animation is playing

    You can even check the frame of the animation

    Sprite - is playing animation

    Sprite - compare frame

  • I usually do it this way:

  • you have two events "on highscore get", one setting it to 0 and one setting it to localstorage.Itemvalue..

  • When not in touch the value of touch.x = 0 as is the value of touch.y..

    So you will have to create an action to set the touch.x and touch.y to the desired x and y when not touching.

  • It should be as easy as using the choose() expression at the right place, but without knowing how you have your events set up untill now telling you where the right place is is pretty hard..

  • If it doesn't work on phone it sure isn't the action that doesn't work..

    Probably your triggered event is wrong..

    What is your event for making the player jump and what is the event for changing the gravity?

  • Would adding a system trigger once condition to that event help?