oosyrag's Recent Forum Activity

  • Depends on the amount of bandwidth available to the host.

  • Try [\r\n] to match a line break, not sure if it will work though.

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

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

  • Try Construct 3

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

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

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