Play Against Computer Player

S-LS-L Member Posts: 52
edited November -1 in Working with GS (Mac)
I'm trying to make a game in which one player can play against the computer. Does anyone know how to control the movements (say for example in a pong-style game) where the actor accelerates towards another specific actor at a certain speed (but is constrained to a certain area)?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You make a real attribute call it player paddlex. Constrain that attribute to the position of your paddle onscreen. Then in the computer paddle actor you constrain self position x to player paddle x. That will get the computer player to follow you. Thats a start
Sign In or Register to comment.