Potato23's Recent Forum Activity

  • What should I add, fix, or take out?

    Help me with this guys, this game was made by a 13 year old with free-edition...

    https://www.scirra.com/arcade/rikoshe-m ... ition-6347

    Tell me what you think! Enjoy!

  • Thx that helps

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I had 5 songs, how would a play them randomly, so if one finished, another random one would play, not the previous one though.

  • C-7 I was thinking of that, thanks. You helped me a lot.

  • C-7

    I looked at the capx, you did think it the right way and fixed it, but as I said i'm not good at explaining stuff. I wanted the ship to shoot outward not forward like a real ship. But i fixed the angles. Quick question, when I hold down the up arrow, it plays that animation, if i hold up and any other one at the same time the animation cant choose. How can i fix this? Thx for the help!

  • Yes, Potato23 that link wored.

    Here's a fix for you.

    I added comments to the event sheet to show you what I was doing. Firstly, I had to fix your right-facing image points. Did you know you can right-click on an image point in the image editor and apply it to the whole animation? That way, the cannonballs spawn correctly. I also set your animations to loop (it comes up on the left side of the screen in the image editor), so just change it back over there if that's not what you wanted.

    Anyways, I added a private variable to your ship so the game keeps track of which way it's facing. I made sub-events to yours that change the bullet angle of motion for your cannonballs based on the direction of the ship. Remember, 0 degrees is ? and it rotates clockwise from there.

    Lastly, I moved your firing actions to functions so you can use the same actions for all of your events. This makes it easier to maintain stuff and not copy+paste a bunch of stuff.

    Thx for the fixes, nice way to solve it, but I missed the recent update. U know where I can get it? (Can't open it without it) Never mind, found it!

  • You could make invisible spawn points and have a condition that prevents them from spawning enemies if they are on screen. A really cheapo way of making them spawn if they're in a specific distance would be to maybe attach a big invisible shadow to the player so you could have "If spawner is overlapping shadow and not on-screen" added to its conditions.

    That is a better way, XD!

  • I don't know how to upload a Capx

  • In my game I have a ship in the sky with 8 direction movement. I changed it to 4 direction movement and no angles are being changed. Because he has animations for Up, Down, Left, Right. Sort of like a RPG character, but with a flying boat. Now I want the ship to shoot, except there is one problem. If am MOVING up, and I press D to shoot out the right side of my ship it will move right because that's what the bullet behavior does. But if i'm moving the ship right, it will shoot out of the front instead, I tried many ways to fix this, such as rotating or adding degrees and they work, but if i shoot one cannon ball, it will go the right way, if i shoot again it will go the right way as well but the previous ball redirect back to the angle again. To make matters worse i'm trying to shoot out the LEFT & RIGHT side of my ship, which makes things harder for me. I'm not good at explaining problems... Can anyone help?

  • Let's say your object that your spawning is named, "Enemy". And your trying to spawn him every 5 seconds. I know that's not what your doing, but you didn't provide enough details.

    So try putting this Event,

    Every 5 seconds > System create object, Enemy.

    Put what layer you want the Enemy on.

    For the coordinates of spawning use, X:random(width of your layout)

    Y:random(height of your layout)

    So Every 5 Seconds a "Enemy" spawns at a random spot anywhere on the layout.

    -But your question is what if he spawns in a block or somewhere he can't move?

    To solve that, use this.

    Enemy is overlapping Platform>Destroy Enemy

    >Create Object "Enemy" on layer 0 (random(width of your layout)) (random(height of your layout))

    Basically when he's created and he is somewhere he is not supposed to be, he will be destroyed and placed in a new spot, if this keeps happening he will keep spawning until there is somewhere "spawn able."

    This is a bad example but it can be worked with, if it is not fitting your game tweak it the way you want it or just not use it.

  • Never would of thought of that! Thx What behavior did you use for movement?

Potato23's avatar

Potato23

Member since 27 Jun, 2015

None one is following Potato23 yet!

Trophy Case

  • 9-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

11/44
How to earn trophies