Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

It is possible, by increasing player 2's X coordinate every few frames, and reversing direction every time the X coordinate becomes too high or too low. 

(+1)

Awesome! Also, can you tell me how I can get the game to end if I reach a certain point total? I want to make it end at 250 points.

Of course! 

Easiest way: f you use the "event" components,  you can change the state to "Gameover" and use a block "On gameover start" to change the background, sprites, etc

More complex way: you could add explicit conditions to make the players,  backgrounds and so on behave differently when the game is over.

(+1)

I have to apologize in advance. I know almost nothing about block programming, so I am really struggling with this part. Is there a way you could show me this, because I am not quite understanding how I program my game to end at the score of 250 points. I see the Event components you are speaking of and tried this, but it didn't work. The game just keeps going even though it appears I set it to end at 250 points.

 

Ok, I will show an example later

(+1)

Thank you so much. I really appreciate it and love playing around with this program!

(+1)

I don't know if it's the best system, but you can use a variable. When you increase the points, you increase the variable accordingly and use that to finish the game.

Perfecto!!! Thank You! I did end up finding a YouTube video of a guy who shows you how to create Player Lives, so I ended up going with that instead. But now, I can use your suggestion in my next game.