oosyrag's Forum Posts

  • What have you set up that limits your player to having one shot?

    Everything that defines what one can or cannot do is a condition. You're on the right track with variables.

    For example, add a variable ShotsLeft=3

    Your condition for firing would include System compare variable - ShotsLeft>0.

    And your action for firing would include System subtract from - ShotsLeft.

    Or you can have an event for after firing, if shots left is more than 0, then reset/reload the next shot.

  • It works for me. NW.js preview.

    Unfortunately I don't have any ideas what may be wrong with yours.

    Try another keyboard? Close all background apps?

  • The net code for a bullet hell multiplayer shooter is... not simple, mildly put.

    There is a snippet of how they handled it in this article... http://t-machine.org/index.php/2012/03/ ... etization/

    It is definitely not a common authoritative server with lag compensation set up. I found that to be mostly unworkable in a high precision environment like ROTMG when I tried to make a clone - it takes too long for the host to create/update/destroy objects and relay them back to the peer.

    There are definitely workarounds, such as those the ROTMG team took, but you have limited control over packet interpolation/extrapolation in the multiplayer plugin.

  • Cool, so in your text file, have each word on a newline.

    By using a loop, you can push tokenat(textfile,loopindex,newline) to an array, which will then populate your array for you. (Start with your array at width 0)

    You can use tokencount(textfile,newline) to see how many lines there are in your text file, which also gives you how many times to run your loop.

  • First thing that comes to mind would be overlapping at offset condition, but this problem can get a little bit tricky. You probably eventually need to differentiate between approaching vs leaving, or just passing over. That logic you will have to work out on your own. Break it down as clear as possible all the conditions required to land, then put into place the code and variables needed to check those conditions.

  • +1 for online backups.

    Recovery wasn't even an option for me... laptop got stolen ><

  • Describe your glitch?

    The realtime multiplayer tutorial is very basic and concise, you really need to do your best and understand each part of it. While the multiplayer plugin automatically handles a ton of basic net code principles for you, it is still flexible enough to allow for different implementations in terms of multiplayer logic and updates.

    Basically, most projects/examples will be even more complicated than the tutorial example. If you don't understand all the ideas presented in the multiplayer tutorial, it will be very difficult to proceed or troubleshoot problems.

  • See if adding "For Each - Enemy" and see if that helps.

    Actions by default run "For All"... if you add for each, your actions will be done separately for each instance of the obect.

  • Array.at(floor(random(array.width-1) will give you the value at a random position in the array.

    I recommend learning how to parse a text file to work with a large list of words. You can import the list as a project file, read it with AJAX, and parse out each word with tokenat and the newline expression as your token separator.

  • You can enable and disable the platform and 8-direction behaviors as needed with actions.

  • Firebase is SaaS, basically a hosted database for its simplest use.

    I'm not familiar with the other services you linked, but generally speaking you'll need a plugin for C2 that will let you authenticate/log in to those hosted services and manipulate the data.

    If you are putting up your own server, I'd say again that Parse was very popular, and there are tutorials online about how to build your own parse server. Then you can use the Parse plugins that exist on the Construct 2 side.

  • Try utilizing spritefont. Either have a system where the user can enter text into the spritefont directly (custom textbox) or create a spritefont with the textbox contents upon taking a snapshot.

  • System Pick Nth Instance of Family

    Use the expression floor(random(family.count)

  • Try using a "System-Wait" action in between 5 seperate spawn projectile actions. Don't use repeat.

    Remember the entire event sheet is run once per frame. Repeats will all be processed within the same frame.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use the timer behavior, or set up your own timer/counter variable.

    Instance Variables:

    Duration=1.5

    IsMoving=false

    (On Trigger, Object IsMoving=false)

    Start timer for Self.Duration seconds

    Set Object.IsMoving=true

    (Object IsMoving=true)

    Set Object Y position to lerp(270, 80, Self.Timer.CurrentTime/Self.Duration)

    (Object OnTimer)

    Set Object.IsMoving=false

    Set Object Y position to 80

    This does take 3 events though. Recommend also having start position and end position as instance variables, which you set upon triggering the first event