oosyrag's Forum Posts

  • You want to add the condition where player is overlapping enemy (and also a trigger once while true), because you only want this event to happen when you actually hit the enemy, rather than any time your y is greater that his.

    Alternatively, use a invisible helper "target" sprite that is pinned just above the enemy to trigger an event when landing from above.

  • I'm not seeing why you wouldn't have control of the size of the object. Anyways if you try to mix your rendering methods you will run into issues, as you have found. So if you position and display your key the same way you would display a wall, which is working properly, the key should also display properly. If you didn't make the effect yourself maybe you can ask the original creator how to adapt it for smaller objects.

  • That makes sense. Again so what are you doing differently with the key compared to the walls as far as position and projection go?

  • Based on the information given in the screenshot, I wouldn't even know where to start looking in to the problem. It may be the same for others, so that's why no one is replying.

    How are you determining the positions of objects and projecting them in 3d, and what are you doing differently with the key compared to say a wall so that it doesn't behave like you expect it to?

  • You were talking about computer science and JavaScript.... That would be applicable to c2 or c3 equally...

  • Seed - "A pseudorandom number generator's number sequence is completely determined by the seed: thus, if a pseudorandom number generator is reinitialized with the same seed, it will produce the same sequence of numbers."

    It is used as a basis to get a specific set of random numbers. The term seed I believe does come from a plant's seed. The same set of random numbers will always "grow" from the same seed.

    Permutation - "In mathematics, permutation is the act of arranging the members of a set into a sequence or order"

    In construct, a permutation table is a randomized set of numbers that are saved and can be referenced at a later time.

    Threshold - "Minimum or maximum value (established for an attribute, characteristic, or parameter)"

    Generally speaking, this is a cutoff value at which something takes effect.

  • I don't believe the turret behavior has a way to exclude specific instances of objects.

    You should probably work at recreating a similar result with events, which you will have much more control over.

  • I saw this a few years ago. I don't know if it is still relevant.

    twitter.com/2xTacker/status/917781791066423296

    Alternatively, have you tried Wait 0 for updating the helper sprite's position? That should make it run at the end of everything else in the sheet, although again I don't know if that would make a difference with behaviors.

    The true solution would be to use sin and cos to determine where the object should be, in effect recreating the orbit with events rather than using behavior. Then you have control of when the position gets updated.

  • CONDITION

    System: On start of layout

    ACTION

    -> AdvancedRandom: Create permutation with Sprite.Count values starting at 0

    CONDITION

    + System: Repeat 5 times

    + System: Pick Sprite instance AdvancedRandom.Permutation(LoopIndex)

    ACTION

    -> (no actions)

    (Do what actions you want with the 5 random sprite instances

  • As above, use a turn server. This is done in construct via

    Add ICE server

    Add a custom Interactive Connectivity Establishment (ICE) server used by WebRTC to establish connections between peers. There are a couple of built-in public STUN servers used, but you can also provide your own TURN servers to enable connectivity through certain kinds of NAT. A username and credential can also be optionally provided if the server requires them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Untested, but this should work.

    + System: On start of layout
     -> AdvancedRandom: Create permutation with Sprite.Count values starting at 0
    
    + System: Repeat 5 times
    + System: Pick Sprite instance AdvancedRandom.Permutation(LoopIndex)
     -> (no actions)
    

    Alternatively, rather than pick directly in the condition, you can save the randomized permutation numbers to an array or variable(s) for use later.

  • Browser object action

    Go to URL

    Navigate to a given URL. Note this uses the same window/tab as is showing the HTML5 game, so this action will end the game. The Target can be used to select which frame to redirect, which is only useful if the game is displayed within a frame (e.g. an iframe embed), and the frame has permission to redirect the parent frame (i.e. it is not sandboxed). Possible targets are:

    Self: redirect only the frame that is currently showing the game.

    Parent: redirect the parent frame.

    Top: redirect the top level frame (only different to the parent if more than one frame is used)

    Alt

    Open URL in new window

    Navigate to a given URL in a new window (or tab if the browser settings override). This continues to run the HTML5 game in the old window or tab.

  • The Video plugin has a Set Volume action.

    Set volume

    Set the volume of the audio playback from the video, in decibels attenuation. 0 is full volume, -10 dB is approximately half as loud, etc. The audio cannot be amplified: positive volume values will be treated as 0.

  • Add the following in in the exported html file.

    <script>
    window.addEventListener("keydown", function(e) {
     if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
     e.preventDefault();
     }
    }, false);
    </script>
    
  • Ways to nerf time slow:

    Limit the duration of time slow.

    Limit the number of times you can use time slow.

    Add a penalty after using the time slow.

    Add a beneficial mechanic that can't be used during time slow.

    Ways to make time slow useful:

    Areas that are otherwise impossible/difficult without time slow by

    a. Volume of information eg. bullet hell.

    b. Size of hazard such as an explosion or beam such that you can't dodge in time normally.

    c. Number of enemies to dispatch without getting overwhelmed.

    State change of normally moving objeccts/hazards such as bullets turning into platforms.

    Any reflex/skill based puzzle.