mechanics !!!

Get help using Construct 2

Post » Wed May 14, 2014 1:29 am

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 :)
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 26
Reputation: 307

Post » Wed May 14, 2014 2:10 am

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?
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Wed May 14, 2014 2:48 am

No i have some problemes with :(

here is the capx file test it.
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 26
Reputation: 307

Post » Wed May 14, 2014 12:32 pm

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.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Wed May 14, 2014 1:53 pm

I can't open Capx file !!!
Please waht version of construct you use, because i have r168
B
5
Posts: 26
Reputation: 307

Post » Wed May 14, 2014 5:01 pm

composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Wed May 14, 2014 6:30 pm

can you save it as a project please :)
B
5
Posts: 26
Reputation: 307

Post » Wed May 14, 2014 7:12 pm

Just unzip the capx file and you'll get the project structure ;)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Thu May 15, 2014 4:08 pm

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 !!
B
5
Posts: 26
Reputation: 307

Post » Thu May 15, 2014 4:42 pm

Just apply the same actions for the other blocks and add a "wait 1 second" as the first action.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, maxwell88, Rable, TELLES0808 and 4 guests