0 Favourites

How do I correctly set an angle of movement when switching

  • Hi there, apologies for the shortened subject line ...

    So, in our little game we have two control mechanisms for our player. In general they use the Platform Plus behaviour to do the platforming sections. However, from time to time they enter a little spaceship. When this happens the platform behaviour is disabled, and a custom movement behaviour is enabled (it has to be custom for ricochet effects, that don't impact this 'problem')

    Whenever we enter the spaceship, for the life of us, we can not get the player to launch straight up regardless. Depending on the location of the docking system it launches the player all over the place. Is there something I am missing in order to ignore the previous directions the player was going in, and just fire the player up for a second?

    Many thanks!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • It's a little hard to envisage the issue. Maybe you could post the capx, or if you don't want to share that perhaps a gif/video of the problem?

  • Some remote troubleshooting tips that might or might not help until you send a .capx:

    • Just for testing purposes, try to set all the speed/vector/movements to 0 when disabling the Platform behavior
    • Again, for testing only, try to disable every behavior that the player has, when entering the spaceship and see whether that fixes the issue. If it does, only disable one and go behavior by behavior to see which behavior causes the problem.
  • Apologies for the slow reply ... randomly, your suggestions fixed the problem.

    By setting the speed, issuing a 'stop' and setting the vectors to zero - taking a 0.01 second pause and then setting the correct vector movement, it fixes the issue.

    Thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
233 22,241
TiAm's avatar
TiAm
Unread hot topic
99 10,126
karshinkoff's avatar
karshinkoff
Unread hot topic
76 8,613
serivesmejia's avatar
serivesmejia