oosyrag's Forum Posts

  • You can try breaking your text up into individual lines first before working with them using tokenat() and the "newline" expression as your token. Push each line separately into a temporary array and then do whatever you want with them.

  • RegexReplace(String, Regex, Flags, Replace)

    http://regexr.com/ to build your expression.

  • Look into this, a little bit advanced technique though - https://www.scirra.com/tutorials/902/li ... raycasting

  • You do not have permission to view this post

  • This will probably require you to update a database value via your preferred backend service host/provider plugin whenever someone logs in or disconnects in your game, and pulling that value onto a web page via php. At least that is what I think would be the most straightforward way to do it. How exactly to do so is beyond me, and probably beyond the scope of these forums. Maybe someone with more experience in those topics may be able to help you though.

  • If necessary, you can convert a value to a string using the str() expression and a string back into a value using the int() expression.

    Generally speaking, sync is the probably the more proper way method for send values - either via instance variable, or inside a data object like an array or dictionary. That is more for host->peer data though. I think it is not common practice for peers to send anything besides input values to the host, unless you don't care about having an authoritative host, but that's up to you. Having an authoritative host keeps things much cleaner logically in terms of peer/host events (or at least it does for me).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On trigger, set variable to choose(1,2,3)

    If variable=1, set angle towards a

    If variable=2, set angle towards b

    If variable=3, set angle towards c

    Move forward

    8-direction is probably unnecessary in this case, although you might use it for other reasons.

  • I think your main event "[ Layer 'GAMEOVERSCREEN' is visible ]:" is running every tick (while your game over screen is visible). So every tick it is stopping the audio, and setting the countdown timer back to 30.

    The single run actions associated with your game over screen should be in the event that triggers the game over to begin with (what event causes your game over layer to become visible?). In that same event, you should run all the actions that you want only to trigger once.

    A function can be useful in scenarios where you have many separate conditions that trigger game over, so you don't have to copy the same actions over and over again.

  • Without showing how your movement system is set up, it will be difficult to get a specific answer.

    The min() expression may be of use. min(maxdistance, selecteddistance) would return the smaller of the two values - either the maximum distance they are allowed to move, or the selected distance that the player would want to move.

  • Firstly, I'm assuming your game over screen is a separate layout. You probably don't need to do this - just make it a layer that appears on top of your current layout. Then all you need to do is system-restart layout.

  • a. The numlock button should switch between your number pad and the function keys.

    b. Plug in a full sized usb keyboard or usb number pad to your laptop.

  • This is more a photoshop question than a construct question. Check out

    https://designshack.net/articles/graphi ... n-minutes/

    Or https://designshack.net/articles/graphi ... n-minutes/

    For your particular pattern, you will want to rotate and try adjusting the size of the canvas before offsetting to check that it tiles. You can use guides to make sure the lines line up horizontally and vertically where they exit the edge of the image.

  • Make sure the origin point of each frame of your animation is in the same location.

    https://www.scirra.com/manual/63/image-points

  • Where did you get your capx file from? Ask the originator what plugin they used so you can get it yourself, or ask them to send the plugin to you as well.

  • To get help for troubleshooting, people will commonly upload their project as a .capx to a file host like dropbox.

    It will be difficult to help you with your problem with that description alone, but if we can see the event sheet it will be much clearer.