Prevent strange moving?

Hey guy's,

my game is nearly finished now, but there is a very important game mechanic, which doesn't work properly at all.
I've made a short video to show you what the problem is.

youtu.be/STlAmC7J3Iw

It's hard for me to explain in english but I'll try:
You see, the Actor is "laggy" when the clouds don't offer a way to move (when they form a line for example). It would be great, if the main actor "pushes" the clouds which are blocking the way. They should float around the actor, that the way to the bottom is free. I hope you can imagine what i mean :)

At the moment I'm moving the clouds with interpolate, but i don't think i can get it working with this behavior. I've tried it before with move and velocity. With these i nearly got my desired behavior, but the clouds couldn't guide the main actor, they only were floating around him most time. Maybe I've set up something wrong with the density.

Another important information, is that the green main actor is contstrained to a fixed y-position.

I hope someone of you have an idea what to do. I don't have one.

Thanks in advance
Justin

Comments

  • JayJayDJayJayD Member Posts: 48

    Hello again,

    no one here who can help?
    Do you need some more information? If so, please tell me which information you need.

    Thank you,
    Justin

  • JayJayDJayJayD Member Posts: 48

    Push

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited November 2014

    Problem seems to be the interpolate in the clouds, change to move to or simply move.

    If the above doesn't work with your game...

    You could use a large invisible actor stretching the width of the scene non movable that collides with main actor which is placed under your main actor to stop it moving down and in your main actor use accelerate down and have the clouds collision shape circle....this should move move your main actor left and right which I think is the effect your going for.

    Darren.

  • JayJayDJayJayD Member Posts: 48

    @DeepBlueApps‌ Thank you for your answer.

    I think i have to clarify some things. The interpolate is the problem. I've used it for a temporarily workaround for testing because i got the best results with it.

    @DeepBlueApps said:
    which is placed under your main actor to stop it moving down and in your main actor use accelerate down

    The main actor isn't really moving down. Every other actors are moving up. The main actor is constrained to a fixed Y-position and he can only move at the X-Axis.

    Here is another video which demonstrates how it looks like when i use the move behavior:
    Clouds with moving behavior

    You see, when using move, the clouds aren't "strong" enough that the actor can ride on them.
    The Clouds should only avoid the actor if there is no way for him to get through.
    But at least it looks like it should. No struggling through the clouds anymore.
    But still not perfect.
    Hmm you understand me? :smile:
    Even changing the density of the clouds don't have the desired effect.

    Do you have some more ideas?

    Justin

  • JayJayDJayJayD Member Posts: 48

    Push

  • JayJayDJayJayD Member Posts: 48

    Push

  • jsorr2jsorr2 Member Posts: 279
    edited November 2014

    Edit: maybe, you could create one long invisible actor that is the same path as the clouds and that collides with the main actor to push it. And if the long invisible actor is at a certain rotation (180 degrees = straight) ,destroy it and let clouds go around main actor.

  • JayJayDJayJayD Member Posts: 48
    edited December 2014

    @jsorr2 said:
    Edit: maybe, you could create one long invisible actor that is the same path as the clouds and that collides with the main actor to push it. And if the long invisible actor is at a certain rotation (180 degrees = straight) ,destroy it and let clouds go around main actor.

    Thank you for this answer, but but I'm not completly sure how you mean this.
    The invisible actor should it be horizontally? And then changes the angel when colliding with main actor?

    I've to check how the performance is when doing this, because there can be a lot of clouds on the screen.

    Sorry for the late answer.

Sign In or Register to comment.