Constraining Actor On Screen

RedlerTechRedlerTech Member Posts: 1,583
edited November -1 in Working with GS (Mac)
Hey Guys,
For one of my projects when I collide the player with an invisible wall off the screen it finds its way squeezing through, can someone post the math to keep the actor on screen mathematically.

Matt

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    My friend is just asking me how to get continuous movement off walls all around the edges of the screen, never stoping. I initially changed the velocity of the player, and then when it collides with the wall to change velocity at 300 to a random direction, yet it finds it way to squeeze through the walls (occasionally)
Sign In or Register to comment.