oosyrag's Forum Posts

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

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

  • round(money*100000000)/100000000

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another option would be to request an addon. I don't see any reason an "enhanced bullet" behavior can't be created, with one of the described additional functionalities built in. Besides the fact that someone actually has to do the work of course. It would probably involve adding a raycasting function to the bullet movement behavior that could return an expression with the collision point. This may be significantly more resource intensive than the original bullet behavior though.

    On the other hand, when people try to design with bullets travelling so fast I generally feel its safe to recommend using a raycasting bullet system to begin with, and not use the included bullet behavior.

    IMO, I always felt bullet was a bit of a misleading name to begin with, as it ends up being useful for so many things that are not "bullets". Maybe "Linear Motion" or "Projectile"? Guess it's not that important.

  • Set Value to max(0.00000001,newValue).