oosyrag's Forum Posts

  • docs.google.com/document/d/1iNSQIyNpVGHeak6isbP6AHdHD50gs8MNXF1GCf08efg/pub

    Well... It's probably not as simple as you think. Good camera behavior can be very complicated, and unfortunately I don't have a "quick" example that I can just give you. But that's why it's very important to clearly define how you want the camera to behave under different conditions and situations.

  • What is your issue? Are you having trouble with the camera leading ahead of movement, constraining the camera at room edges, or transitioning between rooms? Break it down, you should be able to create each system separately, and set the conditions under which each should take effect.

  • If all your enemies are taking the same path, is it still the best path for each enemy?

    If there is a shorter path and they're still taking the long way around with the rest of your instances, there is something wrong with your events.

    If you want them not to take the best path because another instance is already taking that path, you can pathfind for each enemy in sequence. Upon the first one finding a path, create invisible helper objects at each waypoint of that path and add cost to those objects, and regenerate the map. Then pathfind for the next enemy, ect.

  • Or use an invisible helper object, loop through the main tilemap and create cost objects on top of every tile that is grass on start of layout.

  • If the host can get client input, then it knows where the client touched.

    Check if there is an object overlapping at that point, and assign it to the client that made the input.

  • A peer needs to tell the host either where it touched or what it touched, and the host does the syncing. The host then needs to relay to all peers that a particular object is associated with a peer, and all peers need to also associate that object with the peer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What determines who attacks first? How is the turn system set up?

    In view - Use LOS behavior

    Chasing - Use a helper sprite, spawn it at the target and move it x pixels towards enemy, pathfind to helper sprite. Update position of helper sprite as needed.

    Overlapping can be a very complicated subject. One approach is to continue moving the pathfinding target helper sprite until it has a free spot, if the original target was already occupied by a pathfinder sprite. Then you add things like give instance variables to the helper sprite to keep track of the expected time of arrival, and use that for prioritizing who gets the closest spot.

  • Perhaps your action is "set variable to 1" instead of "add 1 to variable".

  • You do not have permission to view this post

  • Use a second array to keep track of the frequency of each value with the indexof(value) expression.

    For each element in originArray

    If frequencyArray.indexof(originArray.CurValue)=-1 (doesn't exist), frequencyArray Push front originArray.CurValue, set value at 0,1 to 1.

    Else set value at frequencyArray.indexof(originArray.CurValue), 1 to frequencyArray.At(frequencyArray.indexof(originArray.CurValue), 1) + 1

  • construct.net/en/make-games/manuals/construct-3/plugin-reference/nw-js

    Write text file

    Write a text file to the user's local system. If the file does not exist, it is created. If the file already exists, its content is overwritten.

    ReadFile(path)

    Open the given file and return its text content as a string. Note that each time this expression is used the file is opened and read from disk. Therefore if the expression is used twice, the file is opened and read twice, which can impact performance. If necessary first read the file to a variable, then reference the variable multiple times.

  • It looks like it's following the plane fine to me.

    Maybe try adjusting the origin point of the smoke to a different location on the plane, like the tail, by using an imagepoint.

  • Why not try it and find out? You can make it through the tutorials with the free version no problem.

  • Nw.js can read from and write to disk. Your game will write the relevant information to the local drive, and your wrapper app can read from there.

    Cloud solutions would probably be preferable in this type of application though.

  • Do you have physics enabled somewhere?

    Hard to guess what's wrong without seeing your project. But something is definitely not normal. As far as the bullet behaviours bounce by itself goes, it should not be doing that.