mechanics !!!

0 favourites
  • 10 posts
From the Asset Store
Top down zombie survival mechanics pack in the style of Cannon Fodder.
  • i have two families

    the first family ==>(block1, block3).

    the second family ==> (block2, block4).

    and the player.

    and i want to get my player jump with this four blocks by changing the visibility and the solid behavior randomly betwen theses families.

    Thanks for your help

  • So, you want the blocks to alternate opacity and whenever:

    opacity = 0 ---> deactivate the solid behavior

    opacity = 100 ---> activate solid behavior

    ?

    Am I getting this right?

  • No i have some problemes with

    here is the capx file test it.

  • Well, there are a few things wrong in your capx.

    1) Don't use Spritefonts for platforms. Yes, you can add the solid behavior, but the best way to deal with repeated blocks of textures are either Sprite objects or Tilemaps. I haven't use Tilemaps yet, so I will suggest to "brake down" your different block types in to separate frames on a single Sprite object (don't forget to set the animation speed to 0), and use that Sprite to lay down your blocks that populate your level.

    2) Your thinking was right, but your timing is wrong. You set an event that tells C2: every 1 second repeat those actions, yet, within the same event you have a wait 1 sec action which contradicts it self when the event repeats after 1 second. The Every X seconds condition should be set to 2 seconds. That way the actions within it have the required time to execute. (There are other ways to achieve this, but since this gets the job done, let's leave it be)

    3) For some reason, deactivating the "Solid" behavior does not update if the player with the "Platform" behavior is upon the object that has it. Use the "Disable/Enable collisions" actions instead.

    4) You don't have to use Families for your example. I used a simple Instance variable to separate the Blocks that we want to vanish recurrently.

    5) There is the issue that the Block will solidify it self while the player is occupying the same space with it. I used a "Player is Overlapping with" condition to move the player out of the way when that happens. It's not perfect but it does the job.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can't open Capx file !!!

    Please waht version of construct you use, because i have r168

  • can you save it as a project please

  • Just unzip the capx file and you'll get the project structure

  • Hey thank you so much it's useful but the only probleme i have with is i want to invert the action between two blocks

    for example when the first block is active the second should be inactive

    thanks !!

  • Just apply the same actions for the other blocks and add a "wait 1 second" as the first action.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)