oosyrag's Recent Forum Activity

  • It's your ajax request to a project file or a url? If it's a project file, it won't need Internet. If you're using a url, it will.

  • Are you logged in to the right account?

  • I would generally recommend against having labels for rows/columns within an array. There are many reasons for this, but the main one is that much easier to work with an array that contains one data type as opposed to multiple.

    I would use a second 1d array as an index, with the location/label data. It would work especially well in this case if your labels are the same on both the x and y axes.

    You can use the array.indexof() expression to get the index of any given value, but this only works on the first (x) axis of the array.

  • You do not have permission to view this post

  • Use individual objects for each letter.

  • Whenever you change the tile, record the x and y tile position in variables.

  • A curve drawn with lines is smoother than you think. It's just a matter of resolution.

    dropbox.com/s/9a76a3nx6od06nr/drawtracerexample.c3p

    Edit: If you don't want to use drawing canvas, using a sprite object as a line connecting the current position to the last position will work mostly the same. Use distance(x,y,lx,ly) to set the width, and angle(x,y,lx,ly) to get the angle.

  • A grid is simply rounding all coordinate inputs to the nearest grid position.

    So if your grid size was 1 pixel by 1 pixel, you would round all numbers to the nearest whole number.

    If your grid size is 32, you would divide by 32, round, then multiply by 32 again. gridx=round(x/32)*32.

  • Looks like you found a bug. If you can reproduce it in a minimal project, the team would probably appreciate you putting a bug report together. github.com/Scirra/Construct-3-bugs/issues

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Using a second array to temporarily hold values is a pretty straightforward, standard sorting technique.

    Alternatively, you can use a while loop, looking for array.indexof(0) to find 0, and delete that index. Keep track of how many 0s get deleted until there are none left, and push back that many times.

    Efficiency wise, you probably don't have to worry about it unless you're experiencing noticeable slowdowns.

  • You do not have permission to view this post

  • You do not have permission to view this post

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • 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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

22/44
How to earn trophies