oosyrag's Forum Posts

  • This is actually a rather difficult problem...

    I have no idea how to go about it, but I have two ideas for approaches:

    1. Using the built in pathfinding system, create paths with blocks of the same resolution as one lane, and block and unblock specific lanes for each car as necessary. This is probably a Bad idea, as updating the obstacle grid often is costly, and you would probably need to do so individually for each car to have a decent simulation.

    2. Create a custom pathfinding system with nodes at intersections per lane and bullet behaviors. Much work needed.

  • I wanted to make a system where if the mouse hovered above a tower it will show a "upgrade" button. I got that working, but the button would stay there forever. is there any way to get the button to be destroyed once your cursor has passed it?

    https://www.dropbox.com/s/b49w59ct9uv87 ... .capx?dl=0

    Right click and invert the condition.

    To be more flexible, I recommend utilizing an invisible helper sprite to define the area where the the popup stays visible instead of using the objects themselves. This will allow for more flexibility in placement of the popup, as well as stave off issues when you have multiple or other objects creating and destroying the same popup.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • FYI, to post dropbox images, you'll need to change the link suffix from "?dl=0" to "?raw=1".

    While I don't exactly know what you are attempting without the picture... https://www.scirra.com/tutorials/5005/m ... ing-lights should cover pretty much everything to do with the shadow caster behavior if you study and understand it.

  • Jump will only go up. You'll need to either apply a bullet behavior at angle, or physics impulse depending on how you have your physics set up.

    To get the angle from your cannon to your character, use the expression angle(cannon.x,cannon.y,character.x,character.y).

  • By placing the first instance of an object in the layout editor and setting its properties in the properties bar, you are setting the default values for whenever that object is created by the system create object action.

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    A common solution is to leave any computer/server on with the game open as host in a browser tab or nw.js. This is the simplest kind of "server" and should be sufficient in most cases.

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

    >

    Well, one of the most frequent and annoying glitches is that when 2 players join, the First Player (The Host) can't see the second player, but the second player can see the first player (The Host). When you move the First Player, you can see the first player move on the second player's screen but not vice versa.

    When you say frequent, does it only happen intermittantly (in the same project)?

    If it happens all the time, you have a net code logic error: it sounds like your host is syncing properly, but your peers are not set up properly. Are you using a authoritative host setup like the tutorials? The peer events should not be creating or moving any objects (outside of local input prediction, which can be implemented AFTER you get basic net code working) - only sending inputs to the host, which does all the creating, updating, and syncing of all objects.

    If it works properly sometimes but not all the time, I suspect routing/latency/unstable connection issues, which I can't really help with. But at least to confirm it isn't a networking issue, you can have both host and peer running on the same local host to test (open two tabs).

  • I don't know the answer to your specific question.... But any reason you don't apply your workaround to all situations of the app resuming?

  • Basically, you need to "pick" the bunny you want to scroll to first with conditions. There are many ways to do this, some of which has been mentioned above.

    Then when you use the scroll to action for bunny, then it will center the screen on the one that had been picked in that event.

  • Scale inner/outer are the correct options. But any type of scaling will result in blurry edges if your original art is too low resolution.

  • Try it.

    It should work, AFAIK all exports are browser wrappers.

  • Regardless of if you use a text object or spritefont, I would imagine parsing out the words of interest, replacing them with blank space of the same length, and putting an object with the former contents in it's place.

    Alternatively, you would create an "imagemap" of sorts, where you identify the words of interest and their x/y coordinates. Spritefont would be superior, as it would be much more reliable to calculate out pixel locations and sizes of characters with expressions.

    The method would use either tokens (simpler, less powerful), or regex (powerful, more complicated)

  • That looks fantastic. Simple solution is best.

  • XML is great for situations like this.

    But you'll still have to manually define values for your variations.

  • Here's a the idea I mentioned previously.

    Although I still lack the maths to get the edges at the correct angle... >_>

    https://www.dropbox.com/s/fswym37e307i2 ... .capx?dl=0