2 problems making my first game. Please help I'm sure they are relatively simple. Please and Thanks
burzum0727@gmail.com
Member Posts: 0
First off on my game I am making a scoring system and it has a goal how do I make the score go up for every time a goal is scored. When I do this I have it so the actor used as a "ball" is set to destroy. Also in that same realm of questions after that how do I make it respawn in a specific position. Let us say for these purposes that it was a soccer ball and goal. If I'm on the left and score a goal and its the opponents turn how do i make the ball respawn on the right side "computers" side. Now for the second question how would one set up a computerized player and set its difficulty. I have more questions as well but I'm not sure how well this one is going to fare, so lets see... Thank you for reading and helping, any advice or things of that are appreciated. I have only had game salad for 2 days so its a large work in progress.
Comments
to have it respawn in different areas depending on which goal the ball goes into would be by have a different variable for each goal. when the ball collides with it, it will change the variable like I talked about in paragraph 1.
for a computerized player for soccer you need to have him chace after the ball so you would need accelerate towards ball actor and set a max acceleration so he doesn't go to fast. Than when he gets in contact with ball actor you need to have an acceleration towards the goal. have a larger actor that is invisible around the goal and make him shoot the ball when he collides with it. have it do random times after colliding with actor so that it isn't always the same. I could go on forever with it but I'm tired of typing and if I do i'll just end up making the game.
for the score, go on youtube or search the forums. you will find a bunch of videos and tutorials on it. I would recommend using the tables tutorial.