Randomly generated terrain and another confusing feature
mystic 2628
Member Posts: 45
Some of you have probably seen my other post so you know what kind of game I'm making. For others, I'm just making a small, aerial view, pirate ship battling game. All is going well so far, but I've run into a problem with detecting ramming. I'm not exactly sure how to detect which ship is ramming which, and according to physics, if a ship rams the side of another ship, it'll do way more damage than any other type of collision.
I think it may be something to do with the ships X and Y velocity and having the game deal damage to hitpoints depending on how high a ships a velocity while ramming is. However, due to the half sail, full sail and no sail features, the X and Y velocity of the players ship and the enemy ship may be the same, meaning that technically, both ships have rammed eachother at the same time even though the player is the one who rammed the enemy.
Basically, when two ships collide, I need a way of detecting which ship was actually ramming and which ship is being rammed.
I think it may be something to do with the ships X and Y velocity and having the game deal damage to hitpoints depending on how high a ships a velocity while ramming is. However, due to the half sail, full sail and no sail features, the X and Y velocity of the players ship and the enemy ship may be the same, meaning that technically, both ships have rammed eachother at the same time even though the player is the one who rammed the enemy.
Basically, when two ships collide, I need a way of detecting which ship was actually ramming and which ship is being rammed.
Comments
And this: http://blog.habrador.com/2013/02/how-to-generate-random-terrain.html
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
You're asking about an advanced concept so it's going to take a steep learning curve unless you're already familiar with concepts related to terrain generation (I am not). That means a lot of time and trial and error or it means an investment in paying someone to make it for you or teach you how to make it.
You can also see if others here have suggestions for how to get started.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Do you need the index attribute to work this? Because on windows, we ain't got no indexes...
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
In windows, it is called the integer attribute.