ultrafop's Forum Posts

  • Hey, I'm away from home and on my laptop I just have the free edition. I can't make changes to your code but it looks like you aren't actually creating the local storage key when it's missing (If this is not the right way to go, someone please correct me - it's been awhile since I've implemented storage).

  • I would love to provide more than this link, as it's not exactly what you're looking for, but I think it's a step in the right direction.

    Good luck!

  • I think you could use the 8 direction behavior with the paddle and then it could go any direction, theoretically. Just make sure it isn't set to be 'up and down.'

  • Hey there,

    I have not idea whether that's a standard font. You may want to find a sprite font version and use that instead, to account for different devices, which would have different font packages.

  • I would think would be a good person to ask about issues with Spriter.

  • One way of doing this might be to use the 8 direction behavior. You can have a variable set to something like 1,2,3,4 (or left, right, up, down...really whatever works), and then have events set up that simulate movement if the variable is set up a certain way.

    You will have a second variable that tracks key presses in the same way.

    For example:

    -One up pressed - set variable to "up"

    For the second part, having the player turn accordingly, I would recommend setting a sprite (a line, maybe with height of 30 and width of 1) and then have that sprite set it's angel depending on the variable, (up, down, left, right).

    Next have invisible sprites set up on openings that the player can go into, when the line sprite overlaps that invisible sprite, you set the main player movement variable to the second variable that is dynamically tracking key presses. You simply set the movement to a simulate control based on the primary variable.

    So to summarize, with this idea you'll need 2 variables, one for dynamic tracking of key presses, and an additional one that is set for actual movement control, that is set the the secondary variable when the player's "line tracker sprite" collides with the invisible "opening sprite." The line tracker sprite needs to have it's angle adjusted depending on key presses.

    I don't know whether this will work for your project because I don't really know what it is, but I'm imagining this as being something that could work for a paceman style game.

    Good luck,

    Ultra

  • Hey there,

    So I would guess that you're using variables that are specific to the player object itself?

    There are two things you can do:

    1)Set up an array with all your variables (as it would be global), and then have your player variables populate from the array. This way, no matter which layout your player goes to, it will always maintain it's variables. (Although, if you did this, you might as well just cut the player variables out altogether as it would be an unnecessary intermediary container for the variables)

    2) Switch to global variables, as they won't be changing from layout to layout, unless you have a "reset global variables" action set up.

  • I'm thinking you could make image points around the players and enemies and then set the hit boxes to those points every tic. You can help picking out by setting the boxes in containers with the players and enemies.

    However, I should note that these hit boxes are going to knock into one another, which may be what you're looking for, but that should be explicitly stated. Movement will, in some way, be restricted due to these ones being solid.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This topic might be helpful for you:

  • I'm thinking that you could set your dt*speed that you're using for the road and the buildings as a global variable. Then when you're spawning the sinkholes and oil slicks, you set the speed to that variable, that way it's always up to date.

  • This is pretty cool haha. Love all your contributions. If it were possible to buy you a beer, I would.

  • My thinking is that you can either set an array or global variable (the array would probably be better) to be set with the numeric values for the color that you want your text to be. On the start of your layouts you set the text color to the values you saved when selecting color in your initial layout.

  • Did you test it up as: 192.168.0.12:50000 on the other devices or did you just use the ip address? You'll want to tack on the ":50000"

  • As far as I know, both objects would be triggered if they were overlapping, unless you wrote a line of code in to control for the Z order (object a's Z order = greater than object b's z order; on touched = set state to XYZ)

    You can do the same sort of check for object visibility.