enum pirate's Recent Forum Activity

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

  • I've been spending a long time trying to get this working and I always seem to run into a problem. I'm not even sure if it's possible to stack items into an inventory with the way I've made my game but here's what I've figured out so far:

    I create an array and tiled background for the inventory. When I run into an item I pick it up and then I start a loop. The loop basically goes through each spot in the array and looks for an empty space to place the item.

    Everything up to this point works great but I can't get the picked up item to recognize when I already have the same item in my inventory. I want to make it so that:

    -There can be multiple stacks of an item type with a maximum amount of the item in each stack. (So if I want a stack of bullets the max in one stack can be 10)

    -The picked up item goes to the smallest stack.

    -Shooting a bullet, for example, will take away one item from the stack (assuming the stacked item is a bullet).

    Is this even possible using just an array or am I just driving myself crazy?

  • Looks really cool but you should make the screenshots actual screenshots instead of pictures of your phone.

    It'll show off the neat art style better.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Good job on this I think it could be really useful for some people.

enum pirate's avatar

enum pirate

Member since 1 Feb, 2014

None one is following enum pirate yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies