oosyrag's Forum Posts

  • Read - construct.net/en/tutorials/multiplayer-tutorial-concepts-579

    You'll need to understand the differences between the host and peer, what data is being sent between clients, and that what each client sees and the information that each client has at any given time is different. Netcode is generally about how to hide the effects latency from the point of view of each individual client, rather than making everyone see or have the same information at any given time.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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

  • If you use inclusive solid filtering mode on your player sprite on the wall, it will only treat walls as solid, and nothing else. Your player shouldn't need any filtering.

  • What's a double unit?

    If you want to prevent two units spawning on the same side consecutively, just alternate between the lanes instead of choosing left or right randomly.

    In general though, you can record where the last unit spawned in an instance variable. Check against that instance variable to make sure the next unit doesn't spawn there, then update it.