Jump to content



0

CALL LOCATE


51 replies to this topic

#51 orion1052003 OFFLINE  

orion1052003

    Chopper Commander

  • 140 posts

Posted Thu Oct 20, 2011 11:38 PM

I will try this pseudocode/brainstorming/flowchart thing. What is the first thing you would need to do to make the man able to jump both left and right? Do you need to use the variable Face to accomplish this?

#52 matthew180 OFFLINE  

matthew180

    Stargunner

  • 1,242 posts
  • Location:Marshall, Michigan

Posted Fri Oct 21, 2011 7:10 AM

If you are not sure how the program should come together and flow, then take smaller steps. If you don't yet know how to write a game, then don't start out by trying to write a game, it will end in frustration. Write small test programs that isolate and perform only 1 task. Once you understand how to do that one thing, do another that you are unsure about. Write little test apps until you understand all the concepts, then bring them together in a game. Also, try to solve the same problem in a few different ways. That gives you the knowledge and experience as to what works best and why.

You seem to be getting hung up on the jumping, so start with that. Forget about the joystick, players, facing direction, etc. Just write a small test program that moves a tile or sprite along a "jump" path (if that is how you decide to do it.) In one of these threads several examples have already been posted on doing that. But you will learn more by doing it yourself. Read other people's code for understanding, write it yourself to gain knowledge, write it multiple ways for experience.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users