enum pirate's Forum Posts

  • The world generation is cool, how did you get it to generate worlds so consistently?

  • Here. Capx is commented; should be self-explanatory:

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

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I currently have a way of randomly generating maps by spawning sprites but this is bad for performance.

    I was wondering how I could create a specific tile at every point where there is a floor sprite.

  • ------------------ is a simple rogue-like shooter that I was able to finish in a little over a week.

    Download it here:

    ----------------------------------

    Features:

    Randomly generated levels, retro sounds, addictive gameplay!

    How to Play: Move with the left thumbstick and use your right thumb to hold down anywhere on the right side of the screen. With your thumb still down move it in any direction to shoot.

  • So I have made a randomly generated map using an object which moves around randomly and spawns a floor tile every time it moves.

    So the floor tiles work great and it makes a good map every time but I was wondering how I could spawn walls after the map generation is done?

    I want it to look something like this so that every top wall projects a shadow but I have no idea how I would be able to spawn walls.

  • Seem very interesting, but than I'm a huge fan of randomly generated survival games. Really liking the style as well! Are you also adding day and night sequences, with Construct 2's dynamic shadows and "darkness layer", it would really add to the atmosphere and depth

    Day and Night cycles are definitely something I plan to add!

  • thanks! Are you referring to preparing to blast some enemies away before they nab you? I definitely have to factor that in. I don't know how much larger levels will get in the end, since I'm aiming for a more casual audience... but they will definitely get bigger.

    Not really larger, I should have used better wording.

    I just think enemies should be a bit further away from the room entrances. This only happened once so it really isn't a huge issue.

  • Definitely a well put together game. Just make the levels a bit bigger to allow some preparation once the camera switches to the next room.

  • copy.com/Tw3lYr2GlJ4AI0aj

    You need some kind of means to keep track of the maximum stack amount for the items (you can save those in a dictionary for example, the dictionary can be filled at the start of your game from a text file). Other than that the array should suffice. You can also add other qualities like description etc to it.

    I'll try it out thanks!

  • No problem. If anything just use the bullet instead of the platform behavior. Give the bullet some gravity in the behavior settings. When the apple is spawned set the angle (probably to 90) so that it will shoot upwards and come back down.

    You can tweak it to give you a random angle each time. Just make sure to make the random number between 180 and 0 degrees each time. ( Or whatever you want.)

  • Erm so if your game is strictly 2D (like a platformer) and you want the apple to pop out at a random trajectory (I assume that's what you mean by angle) you can give the apple the platform behavior but set the default controls to NO in the behavior settings for the apple.

    Playerbox1 - On Collision with Crate | Crate - Spawn another object Sprite 2 on Layer 3 @ ImagePoint 0
    PlayerBox1 - Y < Crate.Y             | Crate - Spawn BreakCrate on Layer 3 at ImagePoint 0
                                         | Crate Destroy
    [/code:1qgv9rth]
    
    This is how you should structure the first part of your code. After this you should do this:
    
    [code:1qgv9rth]Apple - On Created | Simulate platform pressing UP
                       | Simulate platform pressing RIGHT[/code:1qgv9rth]
    
    This method doesn't give it a random trajectory but it should work. To make it random you might want to use the bullet behavior on your apple and give it a random angle of motion when it is spawned.
    
    I hope I understood what you were asking for.
  • There is no rep system but I'll accept the compliment as a form of rep :^)

  • Here you go dude, hope I made it clear what I did. Feel free to ask some questions if you don't.

  • Can't you just set the apple to have a random angle when it's created?

  • This looks really well done, the tiny tank demo was a good way to show off the plugin.