Announcement

Collapse
No announcement yet.

Soccer Game Ball Behavior

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Soccer Game Ball Behavior

    Hi guys,
    I'm trying to make a small soccer game. Right now the ball is completely physically simulated (which can be nice for a funny game, but also frustrating).
    I'd like the player to have control over the ball when he gets it and return the ball to its physically simulated state when the player kicks it or looses it somehow.
    Anyone has any idea how to do it?

    #2
    T4l_R You're basically asking about the entire mechanics of a game here. This sort of thing takes many months ( probably ) of BP programming time, even with major vendors. Also, there is no fixed way of doing it, it's really up to your skills and what you think you can pull off.

    You will be looking at using SetWorldLocation and SetRelativeLocation, you can bet that, possibly also AttachtoComponent and so on. But how you do that is what makes the game good, or not...
    Check out Zof ( puzzle game ) on Steam:

    https://store.steampowered.com/app/1414480/Zof/

    Comment


      #3

      add sphere or your ball mesh component to the PlayerBP and attach it to the skeletal ,
      ball mesh -> hide in the game = true .
      create the ball actor, add the ball mesh than get the event Overlap cast it to the player Set the ball mesh->hide = false and destroy the ball actor
      for shooting you set ball mesh->hide=true<< spawn ball class<<add impulse




      Comment

      Working...
      X