ramones's Recent Forum Activity

  • You can use a variable to track the current index:

    currentIndex = 0

    set text to array.at(currentIndex )

    when the player presses a button:

    add 1 to currentIndex

    set text to array.at(currentIndex )

  • Are you running C2 as administrator? Windows won't let you drag drop files from a non-admin window into an application running as administrator.

  • When you push/pop/insert/delete you're adding or removing an entire row/col to the array. The value you insert is used as the value for every new element.

    For example, if you have a 2d array:

    0 0
    0 0[/code:1kxxfbo6]
    
    And you push 1 on the X axis: (adds a new column of 1's at the end)
    [code:1kxxfbo6]0 0 1
    0 0 1[/code:1kxxfbo6]
    
    Insert 2 at index 1 on the X axis: (adds a new column of 2's at position 1)
    [code:1kxxfbo6]0 2 0 1
    0 2 0 1[/code:1kxxfbo6]
    
    Insert 3 at index 0 on the Y axis: (adds a row of 3's at row 0)
    [code:1kxxfbo6]3 3 3 3
    0 2 0 1
    0 2 0 1[/code:1kxxfbo6]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to set the AvailableDirections array global.

    And you might want to set the change the bullet 'Set angle' property to 'No' on PacMan and the Ghosts.

  • Try regenerating the pathfinding obstacle map on start of layout.

  • If you set the physics stepping mode to 'Framerate independent' then you can set the object time scale.

  • What about max fall speed?

  • You haven't changed the max speed from 330 so it won't go any faster than that.

  • The query string format for GET/POST requests is key-value pairs like key=value, separated by &, with + replacing any spaces.

    parameter1=value1&parameter2=value2&parameter3=value+number+3

    It looks like you were trying to use jQuery syntax. In jQuery you can pass an object { parameter1: value1, parameter2: value2 } which jQuery will convert into a query string like above.

    And then the base64 encoded image could contain & or + or other characters that could be confused as part of the query string so you need to wrap it in URLEncode().

  • Set the POST data to:

    "type='base64'&image=" & URLEncode(RegexReplace(CanvasSnapshot, "data:image/png;base64,", "", ""))[/code:1wem2q5u]
  • Use Mouse.X(0), Mouse.Y(0) to get the mouse position on layer 0.

    Or Mouse.X("layername"), Mouse.Y("layername").

  • That looks great. Nice examples!

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies