Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program?
Author |
Message |
:::a hex torn:::
![](http://compsci.ca/v3/uploads/user_avatars/10327157534c2391f3dd67b.png)
|
Posted: Thu Jun 24, 2010 11:58 am Post subject: Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
http://ampersandgame.webs.com/ampersandsiteScreen1.bmp
What is it you are trying to achieve?
Making my program more efficient and fix bugs as well as solve difficulties I've been having.
What is the problem you are having?
- I'm quite sure my program isn't efficient.
- I need help making the character jump well.
- In the world selection screen I can't figure out how to make the worlds cycle.
- I have no clue about how to do animated sprites.
Describe what you have tried to solve this problem
Just about everything, but peer editing.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
ATTACHED
Please specify what version of Turing you are using
Turing 4.1.1a
Description: |
Folder containing all files used in program, as well as program itself.
Program Name: DEMO(modified).t |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
KINGDOM HEARTS GAME.rar |
Filesize: |
21.2 MB |
Downloaded: |
135 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TWizard
![](http://compsci.ca/v3/uploads/user_avatars/14193012864c2cdeb3237c3.jpg)
|
Posted: Fri Jul 02, 2010 8:09 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Lol. Yea i'v seen this on youtube it looks good but making your game in 3-D good luck. You could use frame by fame pictures but that would defeat the purpose. But hey if you need some one to fix up a problem I dont mind taking a look.
|
|
|
|
|
![](images/spacer.gif) |
Monduman11
![](http://compsci.ca/v3/uploads/user_avatars/1960741284bee0b481d3b8.jpg)
|
Posted: Fri Jul 02, 2010 10:39 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
nice man looks good so far
|
|
|
|
|
![](images/spacer.gif) |
Cezna
![](http://compsci.ca/v3/uploads/user_avatars/9406831824c097251d4bb4.gif)
|
Posted: Sat Jul 03, 2010 5:30 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Efficientize? (jk)
One thing you might want to do is use:
This will eliminate the Pause, Stop, Print, Save, Paste buttons at the top of the run window.
This may make editing slightly more difficult however, but this may be an attractive option for the final program, and I personally use it in all of my programs, even those that are not games.
Another thing you might want to do is change the window size with:
Turing: |
View.Set ("graphics:<x size of window>;<y size of window>")
|
but without the triangle brackets.
One last thing is that you may want to use the mouse to make selections instead of the arrows and z to make a selection.
Or, if you decide you still want to use the keyboard for menu navigation, I would suggest using Enter to make selections instead of z.
EDIT: jumping is akward as well, since you are just set to a higher y position instead of moving upwards, decelerating, and then moving back down and accelerating due to gravity.
EDIT: when falling from a jump, you can move sideways through things, and after the game is done, the continue/title menu dosn't seem to work.
EDIT (this may be too many edits): can't figure out how to attack...
|
|
|
|
|
![](images/spacer.gif) |
TWizard
![](http://compsci.ca/v3/uploads/user_avatars/14193012864c2cdeb3237c3.jpg)
|
Posted: Sat Jul 03, 2010 5:39 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Lol. All the games i created have no or vary little keyboard interaction just because it eliminates errors. I would suggest useing the mouse other then the controls for your character. Be sides thats its awsome.
|
|
|
|
|
![](images/spacer.gif) |
Cezna
![](http://compsci.ca/v3/uploads/user_avatars/9406831824c097251d4bb4.gif)
|
Posted: Sat Jul 03, 2010 6:59 pm Post subject: Re: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
TWizard @ Fri Jul 02, 2010 8:09 pm wrote: Lol. Yea i'v seen this on youtube it looks good but making your game in 3-D good luck. You could use frame by fame pictures but that would defeat the purpose. But hey if you need some one to fix up a problem I dont mind taking a look.
TWizard wrote:
Lol. All the games i created have no or vary little keyboard interaction just because it eliminates errors. I would suggest useing the mouse other then the controls for your character. Be sides thats its awsome.
You don;t have to say Lol at the start of every post (unless you just laugh a lot)
|
|
|
|
|
![](images/spacer.gif) |
:::a hex torn:::
![](http://compsci.ca/v3/uploads/user_avatars/10327157534c2391f3dd67b.png)
|
Posted: Sat Jul 03, 2010 7:39 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Well, things like the Button Bar and the continue screens are just because the program isn't finalized yet. I want to fix some big problems I've been having before getting those easier parts done.
My main focus right now is getting the jumping to work well and look like jumping should. Also, making the world sin the world selection screen go around on a loop, not sure how that'd work.
The keyboard controls I do want to keep if I can, it keeps the feel of the game a more traditional-video-game feel. And the screen size being 480x272 is because if I ever want to try and port this as a homebrew PSP game, that is the resolution needed.
Thanks for any help, it's much appreciated!
|
|
|
|
|
![](images/spacer.gif) |
Cezna
![](http://compsci.ca/v3/uploads/user_avatars/9406831824c097251d4bb4.gif)
|
Posted: Sat Jul 03, 2010 8:01 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
To make the jumping look realistic, use y velocity.
This will be the ammount that you need to increase the y coordinate by every time through the loop (it will be 0 if the character is still, negative if they are falling, positive if they are jumping).
Then you can set this y velocity to a certain value when they jump, and decrease it by a certain value (this will represent gravity, and should probably be around .5 to .7, in my experience) as the character falls.
The x and y co-ordinates should be real variables, and rounded before being used to draw the character (or rounded in the draw line, as this will allow for smoother-looking movement, and more precise tuning of gravity's value.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TWizard
![](http://compsci.ca/v3/uploads/user_avatars/14193012864c2cdeb3237c3.jpg)
|
Posted: Sun Jul 04, 2010 10:34 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Dam you got to him before I did lol. Well if theres anything else feel free to ask.
|
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Mon Jul 05, 2010 8:38 am Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
This tutorial covers jumping and sprites as well as some other useful stuff. Look through the tutorial section before making a new thread.
@Cezna, thanks for pointing out that stuff OP knows doesn't work still doesn't work.
OP, describe better 'go around in a loop'. I'm assuming you mean the user can cycle through maps to choose one? Or do you mean literally have the worlds in a visual loop?
|
|
|
|
|
![](images/spacer.gif) |
:::a hex torn:::
![](http://compsci.ca/v3/uploads/user_avatars/10327157534c2391f3dd67b.png)
|
Posted: Tue Jul 06, 2010 2:13 am Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
I have tried the jumping, it looked good, but since I'm not using numbers for the ground but rather images with red lines, it's messing up. The character will get stuck in a line or go right through it.
@Insectoid - Sorry for being vague, I'll try to explain it.
http://ampersandgame.webs.com/ampersandsiteScreen3.bmp
If you click the link above you'll see an image of the world selection screen. You can see it has 2 layers: larger worlds and smaller worlds, this is to give it a sort of 3D effect.
When you scroll through the worlds, the front layer goes one way and the back layer goes the opposite way, making it look like the worlds are rotating. What I want is for them to rotate in an endless cycle, but eventually I reach the end of the front and back layers. I want to somehow loop the layers so I can cycle through.
If that's still too confusing, sorry. I'll just keep attempting to work it out. And, again, thanks for any help.
|
|
|
|
|
![](images/spacer.gif) |
Cezna
![](http://compsci.ca/v3/uploads/user_avatars/9406831824c097251d4bb4.gif)
|
Posted: Tue Jul 06, 2010 10:40 am Post subject: Re: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
Insectoid @ Mon Jul 05, 2010 8:38 am wrote:
@Cezna, thanks for pointing out that stuff OP knows doesn't work still doesn't work.
OP, describe better 'go around in a loop'. I'm assuming you mean the user can cycle through maps to choose one? Or do you mean literally have the worlds in a visual loop?
I'm not exactly sure what you mean by either of these sentences
|
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Wed Jul 07, 2010 7:05 pm Post subject: RE:Kingdom Hearts Game - Any Good Programmers Want To Fix And Efficientize My Program? |
|
|
To make them go in a continuous loop, just switch a world over to the other side of the 'panel' when it goes past a certain X value. If it crosses x=800, set x to -100, or if it crosses -100, set it to 800.
|
|
|
|
|
![](images/spacer.gif) |
|
|