gabmusic's Recent Forum Activity

  • dop2000 Thanks man. Sorry being repetitive, be patiente with me. I saw his example but I really didnt get how his expression works. But now you gave a nice tip. I will try erasing to make the shape a I want.

  • dop2000 Thanks a lot, I'll read it again.

  • Hi! I'm making a tank game, and I dont know how to write the formula for non-retangular shapes of terrain.

    Look this example on the image below? How do I make this with 'set tiles' function?

    Thanks!

  • I've solutioned it. Well, manually. I deleted the bugged sprites and made new ones, then replaced them on the sheet.

    Could you explain better what could have happened?

    Thanx for response.

  • My favorite way to do terrain is with a tilemap. You probably want to generate the terrain with events instead of using the editor. Destroying terrain is just one event as well.

    https://www.dropbox.com/s/4sv6lztqwvtxb ... .capx?dl=1

    For falling terrain you'd have to do something else. Perhaps a sprite per column of dirt that you'd slice up when destroying circles out of them. It wouldn't work if you wanted each pixel of dirt to have it's own color. For that you'd have to just move tiles around which will be slow so you'll want to use a very low res terrain and maybe change the idea entirely since looping over a lot of positions like that is not something that's fast in events.

    I downloaded your .capx. How to you set the tiles on the shape you want? The "set tiles" dialog box seems to simple to me, and you made a complex shape with the tilemap.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am making a tank game where you can select different projectiles to shot.

    All my projectiles were working fine, but after some time, some of them are not being spawned anymore.

    I decided to put all the projectiles sprites on layout and play the preview, and the bugged projectiles are not being created on beggining of layout...

    I have no idea what's going on. I'm pretty sure I didnt any modification in that part of game.

    Please, send me some mindlight because I cant even describe my problem properly.

    Tagged:

  • It depends on how you are using Physics, but generally it's not recommended to mix Physics with other behaviors. Especially when it comes to moving Physics objects - you should only do this with Physics actions, like apply force/impulse/velocity.

    I'm follwing those rules. My actual problem is: there's a projectile that works like a granade. You lanch it using 'impulse at angle' and it explode when it's sleeping. It has to bounce on the ground, but now, my ground is a tilemap, and the granade just pass through the tilemap!

    For projectile that doesnt need to bounce, my project is ok. It collides with tilemap and destroy itself and erase the a range of the tilemap. However, projectiles that need to bounce on ground can't work properly.

    Help!

  • UPDATE:

    I've done! I made a test .capx and the erase tilemap solved my problem.

    Now I need to learn how to set the tilemap in complex shapes and how to make a circunference at erase tilemap function.

    PS: Is there no problem about mixing platform, solid and physics behaviors? It's working well, but... Idk

  • Thank you! I'll check it out and send a feedback soon!

  • You’d get better performance with a tilemap instead of multiple sprites. There are a few examples on the forum you can find with search.

    Is it possible to destroy only the tiles on collision with the projectile instead the whole tilemap? How?

  • Hello! I'm making a tank game, where you have to select a weapon according to the occasion and destroy your enemies. Basically is that. One of the fundamental mechanics is destroying the ground. The whole game has physics behavior, and the best solution (the only) I found was making a ground object of 5 x 5 pixels and create a grid multiplying it. That's the result:

    It worked, but I know, there are too many objects on layout, the performance is very poor. Considering a tile background doenst work for it (because when the projectile touch the ground, it destroy the whole ground, is there any more ellegant solution?

    Please help to achive a better way to do it. Thanks! :D

    Tagged:

gabmusic's avatar

gabmusic

Member since 2 Mar, 2019

Twitter
gabmusic has 1 followers

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies