oosyrag's Forum Posts

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

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

  • Try Construct 3

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

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

  • To take advantage of the built in sort expression, you'll need the category to be sorted by as your first x row. The simplest way to do this is to have a second array for sorted results. Whenever you need to display sorted information, copy the original array to the sorter array with the sorting category as your first row, then sort.

  • You are using wait incorrectly. Wait will not keep the event from running every tick, it just delays the action.

    Also, you will probably need to add "else" to the second event, to make a proper toggle.

  • Making a quick assumption - You're positioning your sprite at 0, 0 and you see part of it off the layout. By default, the center of the sprite is the origin point, so you are moving the center of the sprite to 0, 0.

    To move it to the top left, go into the sprite editor and change the "origin" imagepoint to 0,0.

    If that't not it, a screenshot or capx might describe your problem more clearly.