WRS's Recent Forum Activity

  • WRS

    you can save the entire array AsJSON...

    I made a quick sample...

    https://www.rieperts.com/games/forum/levelstars.capx

    Do I understand correctly that your example is still responsible for opening levels?

    That is, the system that I showed above at the opening of the levels is not quite suitable and good?

    I just understand it.

  • The Array docs are pretty good: construct.net/en/make-games/manuals/construct-3/plugin-reference/array

    Arrays have a "AsJSON" and "Load" actions or expressions that let you get the array contents as a single string (AsJSON) and then reconstitute it (Load).

    Yes, I just started to understand how arrays work.

  • WRS

    you can save the entire array AsJSON...

    I made a quick sample...

    https://www.rieperts.com/games/forum/levelstars.capx

    Big thanks. Now I will understand how it works.

  • Then you might store the array or other values in local storage: construct.net/en/make-games/manuals/construct-3/plugin-reference/local-storage

    Yes, I generally understand how saving works, but I don't understand how to save an array. Save the entire array can not? Can you just save each cell as a key?

  • Use an array!

    I tried, but did not understand how to save the array. after reset it is reset

  • I can not solve the problem with the discovery and preservation of stars.

    For example, a player passes the first level and on it he can get up to 3 stars. There is no problem. I just think every selected star at the end of the layout, I give the message you have passed the level of 3 stars.

    The problem is that there is a layout with a choice of levels. I open the levels (in the screenshot), that is, I have 1 box with 2 animations (closed or open) and I have a star (I copied it to 3x)

    But how to light these stars, depending on how many stars the user has spared, I do not understand.

    I can solve this problem by creating 100 global variables, but I understand that this is not correct.

    Tagged:

  • You are using Trace addon to visualize the cone of view! It crashes on my pc, so I can't help you.

    I recommend you use the official LoS behavior instead. In the latest C3 beta they added raycasting feature, so you don't need the Trace addon. And with the built-in LoS your glass should work correctly.

    https://www.construct.net/en/make-games/releases/beta/r143?utm_campaign=marketing&utm_source=sendgrid&utm_medium=email

    Thank you very much now I'll try)

  • How did you make that visual radius? You need to post your project file.

    I use LOS for visibility

    yadi.sk/d/70m0TTVnmPpduA

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like I said, the glass should be set Solid to block 8-direction. LoS should use custom obstacles. You need to add walls, trees etc. to LoS obstacles, but don't add the glass. Demo:

    https://www.dropbox.com/s/flcf4a7rqr98x1n/GlassWall.c3p?dl=0

    Yes, that's right, everything works like this. But the problem is different. Visible radius does not penetrate the glass. That is, objects (Enemies that fall under the visibility) become visible but the visual radius of visibility itself cannot penetrate behind it.

  • How to make a display system of 3 stars in menb level selection?

    I made a system that puts the level number in the array. But then I cannot compare the actual level with the array cell. What am I doing wrong?

    I have this logic.

    If the player passes the level and the global variable (STL) = 0, then at the end of the layout I send the level number to the array, that is, if level 3 is playing and the variable STL = 0 then add the level to the array.

    Next I wanted to compare the Level and the corresponding cell of the array and if they are equal then set the star.

  • Use custom obstacles for the Line Of Sight behavior.

    Does not work.

    I have a TITE CARD of which I create a HARD behavior and put a TAG - GLASS. Then I make a script for the player (he has the behavior of 8 sides of the movement). And either the player crashes into the glass and the zone of visibility does not penetrate him, or the zone of visibility penetrates him and the player himself can pass through the glass

  • Thanks a lot of good examples.

WRS's avatar

WRS

Member since 2 Feb, 2019

Twitter
WRS has 3 followers

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies