oosyrag's Forum Posts

  • There are so many things that can go wrong with a multiplayer game it will be impossible to give you advice without a capx. It would also help if you linked the tutorial you are referencing.

    But first to confirm it's not a routing issue, are you testing locally with multiple browser windows or are you testing across a network?

    Also have you done all the official multiplayer tutorials and understood them? You will find it painfully difficult to progress otherwise.

  • When you export and minify, nothing should be readable.

  • Same thing. Set opacity to sprite.opacity-dt

    If you want to constrain it so it doesn't go negative, you would do max(0,sprite.opacity-dt)

    Alternatively, use the fade behavior.

  • At the very least, being able to copy/paste or export the event sheet in plain text is a feature I've been hoping for since I started using C2.

    Easy sharing pseudocode via IM, forums, or email were my main use cases. It could also be used to print.

    Having to screenshot, and upload and link just seemed really clunky to me. Similar for capx, and doesn't work when c2 not immediately available. Not to mention all the posing restrictions on new users on the forums.

    I can imagine how formatting may be difficult though. Representing the relation between the conditions, actions, and sub events is not easily done in plain text.

  • You'll need to assign controls based on a variable. The control will refer to the variable, which in turn will refer to the proper sprite to be controlled. Then you will be able to change the variable as needed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is a "preview effects" option somewhere, I forgot exactly where though, don't have c2 handy art the moment. It's either in the toolbars at the top or in the properties manager in the left.

  • The particle plugin has some limitations, it is recommended to do custom particles with every x seconds, and a set of actions utilizing the random() or chose()expressions to set properties for your particles utilizing the fade and bullet behaviors. You'll have much better control this way.

  • Increment by dt every tick is a general answer.

    Set Sprite scale to 1+dt

    Set Sprite angle to Sprite.Angle+dt

    Use a multiplier of dt to change the rate.

  • While I haven't looked into it in depth, I see a wait in there. Waits in loops are a classic recipe to break everything.

  • Set ScoreValue to int(player.y)

    Alternately floor(player.y), ceil(player.y), or round(player.y)

  • You can also do a For Each loop (first pick the relevant instances by preferred method) - Set maxvaluevariable to max(maxvaluevariable,object.value) or Set MinValueVariable to min(minvaluevariable,object.value).

    This will basically go through each picked instance and if the instance value is higher (or lower) than the previous highest or lowest, it will update the variable. Otherwise, the last value stands.

  • Depends on how you are spawning randomly to begin with. If it is random x, y coordinate, you can add a condition to check the distance of that coordinate to the player. If it is within a certain range, pick a new coordinate, else spawn at that coordinate.

  • 1. Your first event is not picking any Flak objects in the conditions. All Flak objects will be destroyed if any of them are within 150 of rocket.

    2. In your loop, there are no Flaks to spawn shrapnel from because they all got destroyed in the previous event. In the same vein, you cannot set the properties of any shrapnel objects because none were created.

  • Use an instance variable to associate your object instances with a player number. In your control events, add conditions that pick which player number to apply actions to (object pick by compare instance variable).