Like ive said, I knew this was going to happen, I knew you werent just going to help me with code. You are are riddles and stuff. I learn by studying, you may learn differently, I don't.
Learning differently is fine. But being lazy is not. You haven't even tried to write any psuedocode. Here's the catch: programming and writing software are just fancy words for
problem solving. Not all problems are the same. In programming, most problems are different. While they have similarities, there isn't "one solution to every problem." You need to learn how to do problem solving. That will take time and effort.
I don't have the personal time to invest in learning something complex
Then you don't have time to learn how to program. Programming is complex. It always has been and it always will be. If you don't have the time to learn how to do it, and you know you don't, you're wasting what little time you have.
im sure you were the same (you learned in a classroom).
I learned from the Internet and wonderful sites like GameDev.net. Not in a classroom, actually. In fact, I've learned very, very little about programming in any kind of formal or informal class.
Now asI said in my very first post on this thread, I would have liked down right help, but nope.avi, you just proxied away at the conversation.
I'm going to pretend like I understand what that sentence is supposed to mean... You ever heard of the proverb "Give a man a fish, feed him for a day; teach a man to fish, feed him for a lifetime?"
If you want to help me how I like to be helped (and stop assuming things differently, I dont want a game, I want a player), thats fine.
What we're trying to say is that if you can't get basic jumping down in your game, you won't get anywhere. You won't finish. You probably won't even really start. So rather than go through all the work of making a demo of how to jump, just so you can study the code and see "Ah, so that'show they made him jump," and then you realize you have no freaking clue what to do with that code now, and then you come back and say "Hai guyz, I need help making my character shoot, plz give me code." Then you come back again and say "Now I need help making my character swim, I need you to give me the code." Then you come back and say "Now I need you to give me code to make my character fly." You know what? By the time you get all the code samples you're asking for, we'll have made the dang game for you.
So I'm just going to try and tell you something:
That's not how it works.
You want code? Here:
double characterVelocityY;
double characterVelocityX;
double characterPosX;
double characterPosY;
int main()
{
while (true)
{
if (spacebar_pressed) characterVelocityY = 10;
if (left_key_pressed) characterVelocityX = -4;
if (right_key_pressed) characterVelocityX = 4;
if (characterVelocityY > 0) characterVelocityY -= 0.5;
if (characterPosY < 0) characterPosY = 0;
if (characterPosY < 0) characterVelocityY = 0;
characterPosX += characterVelocityX;
characterPosY += characterVelocityY;
print_out_to_console("Character position x: " + characterPositionX + " Character position y: " + characterPositionY);
}
}
If you aren't even going to make an honest effort to understand what I just wrote and translate it into whatever APIs/language/whatever you're using, then we've all been fooled and you're actually just an epic troll who fooled us all.