Wossi's Forum Posts

  • dop2000: Thanks for your answer, but I won't use the sine behavior. The problem with this behavior is, that's the player is everytime falling trough the platform. I have the same problem from my last post. As soon as the platform moves, the player falls through.

    brunopalermo: I can not change gravity, because the player can't be controlled anymore.

    ~edit:

    Ah ok, I forgot to pin the player.

    But there is still a little problem... Is there any way to stop the sine behavior immediately?

  • Hello everybody,

    It's possible to move a platform, like sine behavior? I can't use sine behavior, because I use only physics behavior.

    Whatever, here is a example: My layout is loaded and all objects are ready. Maybe it can be, that a object has got a random state (call it "RESTLESS"). Ok, so if RESTLESS is true, than do this:

    Of course, the platform can also move from top to bottom. Is that only possible with lerp?

  • dop2000 you are my hero of the week! Thank you so much!

  • Another (better) solution would be to pass fx_echo.UID to the function as a parameter.

    Inside the function use "fx_echo Pick by Unique ID"

    This will allow to pick a newly created instance of the fx_echo object before it actually added to the layout.

    Ah, this is great! Thank you very much!

    mekonbekon: Yep, I know! But the values 100+ give me a better color effect.

  • Hello,

    I have two instances of a sprite. How can I pick up the X and Y position of the first instance?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I have a event sheet with all my functions. One of these is a function, which set a random color of sprite.

    The function will be call two times... "On start of layout" and here:

    The problem is the second call. The color will be black, everytime. What am I doing wrong?

  • dop2000: Thanks for your reply. That's a good idea! ...but it does not work really well.

    I'm just trying to work with the physics behavior now, but I do not know how to position my platforms with a smooth transition?

    ~edit:

    Ah, I found a solution in this post:

    It's working perfect for me. Thank you dop2000!

  • Meqara: I have found a new problem... Actually, the pin behavior works quite well, but it's not really enough for my project. The problem is that there are platforms that move from top to bottom (with a sine behavior). If the player is on such a platform, he "sinks" in the platform. Do you have an idea how I can fix this?

  • Meqara: Sorry my late answer. I worked on a solution... and yep, I have found the same as yours. The solution ist the Pin-Behavior. Once the player has landed safely on platform B, pin player to platform B and start the bullet behavior.

    Thanks for your help!

  • That was the origin: https://www.dropbox.com/s/5l70r5e5okdhv ... .capx?dl=0

    The problem is, when the player hits the platform and the platform moves, the player hangs in the air or he is stuck in the platform. But the platform should take the player. The basic idea is simple golf game physics. The platform should behave like a basket. I hope you can understand me.

  • Hello,

    I have a platform with a solid- and bullet-behavior, which is dosen't matter. Here you can see the settings of my platforms:

    ...also I have a player sprite, which has a platform- and physics-behavior. Actually, the player does not need the platform-behavior, but otherwise he falls through the platform. Anyway, here are the settings of my player:

    I have a query that checks if the player sleeps. But he dosen't sleeps. After he is falling on the platform, he fidgets around...

    How can I make my player is falling down, landing on platform and is ready to play? Thanks for help.

  • No sorry, but I'm sure I did not do that.

    I found the "data.js" in the exportet project, but I can not read everything exactly.

    https://www.dropbox.com/s/rq8jlai1whefr ... .json?dl=0

    I saw that I used 3 different layers. One layer called "Lights" (Position 4), another layer "Shadows" (Position 3) and a third layer called "Lightmap" (Position 2). But I can not read all the settings of the layer. Maybe a developer of C2 can help me. Too bad that can't easily convert exported projects.

  • Hey,

    this is my current clock system.

    First of all you need 2 global variables:

    ...and this event sheet:

    I hope, I could help you.

  • Here is the method I know:

    https://www.dropbox.com/s/dcpe4ksor5uv7 ... .capx?dl=0

    Also, there is an example project in C2 - start a new project and select template "Multiple colored shadow casting lights"

    Thank you! I know your method, but for this project I don't use them. There is no color in the lights.

    ~edit:

    What I want, is a Day- and Night-System with colored lights. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • I once had a project in which I used light colors. Unfortunately, I can not remember how I adjusted the layers and sprites to achieve this effect. I am currently trying to reproduce that, but I can not find a solution. I do not have the old project file anymore.

    Here is the exported project: ~link removed

    • WASD to move
    • press E on the lamp or fridge to toggle the lights

    How can I implement the lighting effects? Thank you!

    ~edit:

    I can remember that: https://www.dropbox.com/s/53nvd1wxtbq5y ... .capx?dl=0