How do I make a space rocks-like game?
Frazzle
Member Posts: 223
I want to make a game LIKE space rocks but make the asteroid actors go into the play area at a random angle without wrap.Just like the green blobs off amorphous+ ; the free online flash game off kongregate?
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
There is no 'snap your fingers and it's made' solutions, unless someone makes it for you.
Place to start for what you want to do might be with moving the ship, look at control methods for moving a simple object around. Then maybe look at moving other items randomly for the asteroids. It's gonna take you some time to learn.
www.marcosriffel.com
If you want to see this project through you first need to outline the entire game. Close your eyes and 'see' how it will play. Then draw sketches and write down different ideas. What is the object of the game? How does the player get points? How does the main character move? What are the controls? What happens when it gets to the edge of the play area? What do the enemies do, how do they move, what happens when they collide with the player and with eachother? These are the most basic questions you should answer to yourself before you even start.
THEN - tackle 1 element at a time. I would start with player movement and behavior. Then, add enemies. There are tons of good demos on the site, but everything you should need is within the examples provided with GS. But, for any of it to be helpful you need to have a direction and a list of game features. A common mistake in creating games for the first time, and one that I am guilty of, is taking features for granted. Every feature needs to be created by you - so you need to think of what should happen in all the different scenarios and then start implementing the features. When I made my first game (from scratch without GS) my big 'AHA' moment was when I realized that gravity doesn't exist in a computer program - you need to create it.
If you are asking how the have the blobs bounce off the wall instead of warping to the other side - you need to setup walls around the edges and create a rule that will change the angle the blob is moving when it collides. In standard programming you would just reverse the Y (y*-1) when it collides with a top or bottom wall and reverse the X (x*-1)when it collides one of the side walls. I am not sure if you can do that in GS or if you will need to determine the angle that it is moving and set a new angle based off of that. Of course, there is also a physics engine built in - so I guess you could set the drag to 0 and be done.
The more specific your vision, the more specific your questions can be - and the more relevant and useful the answers you get will be. I have a feeling that what you're trying to do is going to require you to get creative - because it will involve the blobs passing through the walls to come onto the screen and then bouncing off of them once they are in the viewing area. You could do that with a large invisible actor in the play area that changes an attribute for the blob that enables the collide with the walls - or with a timer that delays activating the collisions for a few seconds to give the blob a chance to get on screen.
charlie