oosyrag's Forum Posts

  • Use the line of sight behavior and cast a ray. Then on ray intersected event you can use the object.lineofsight.hitdistance to set the width of your line.

  • Use an array to store a history of moves.

    Every time a move is made, push the action/result into the array. When undoing, do the opposite of the last action, and delete it from the array.

  • The workaround is to check if the objects are overlapping (x/y), then add a second condition comparing the z height of one object (the solid, or "floor") with the z elevation of the other (the player). This only works for "flat" surfaces.

  • 6000? You want to be aiming for 1-2k for a humanoid character on desktop, probably less than 500 on mobile.

  • Yes, you can do this with the drawing canvas object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • Tween is good for precise start and end values. It should work fine for your purpose.

    You can cancel the previous tween and start a new one for consecutive shots. You can also change the tween ease so that it's not linear.

  • I feel like using sprite fonts is not standard practice for games that support multiple languages.

    The obvious example is Chinese, where sprite fonts are mostly unfeasible to begin with. I'd stick with the text object for multi language support, or use dedicated sprite fonts for each language you want to support. It would be more work and you'd probably end up supporting just a few select languages.

    Put the sprite font objects in a family, and use functions with language parameter to manage them.

  • You'll need a backend database server or service to keep track of authentication. There are a variety of plugins you can use, such as firebase or photon depending on whatever you are using for authentication. Or you can use the ajax object to post to a php/mysql database if you have a web server.

    Assuming you don't have one, or know how to set one up (which may be beyond what these forums can help you with), you can still use something like the google play, facebook, or apple game center plugins to have your user log in with those services.

  • Rename project.c3p to project.zip. Unpack the file. Edit project.c3proj with a text editor, and look for the line "version": "rxxx". Change to desired version, save. Repack as zip, rename to .c3p.

  • X and Y are pixels.

    Z is about 5.7 times x/y at normal field of view.

  • Every object that exists on the layout will be loaded into memory upon the layout start, unless you manually manage memory. Which isn't recommended unless you're very familiar with the system and really need it for some reason (you shouldn't).

    Basically no swapping objects won't make a difference, because the object you are swapping to is already in memory anyway regardless.

  • To design UI for multiple aspect ratios, you first have to decide which direction is "flexible". Usually this is the direction you expect scrolling to be allowed. In your case, I'm going to guess its vertical. So your horizontal width will be fixed as far as your UI design is concerned.

    So use scale outer, design for the width of the viewport, and understand that the vertical portion may get cut off depending on the aspect ratio, but it's ok because they can scroll.

    dropbox.com/s/g8egk507es8kl2m/scaleouterportraitexample.c3p

  • Here's an example for lerp. dropbox.com/s/wlan9439hmvz584/lerpangletargetexample.c3p

    Tween didn't work out very well, since it is better for a fixed start and end value. It doesn't take into account the change in target angle as the object moves.