Author |
Message |
lil_mickey
|
Posted: Tue Jun 28, 2005 10:06 pm Post subject: Gravity attempt |
|
|
here is my attempt at a 2d mario/sonic type gravity engine. Its quite primitive right now, but i would like to get some suggestion/ tips as to how you think i could improve..thanks in advance!
[Edit: if this is in the wrong section, please feel free to move the thread to the appropriate section, Mods.}
Description: |
|
Download |
Filename: |
Gravity Prototype.t |
Filesize: |
1.62 KB |
Downloaded: |
357 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Tue Jun 28, 2005 11:08 pm Post subject: (No subject) |
|
|
Not a bad first attempt. A few pointers:
1)
F2
2)
Look up the Tutorials on types and records, it will save you having to declare so many needless variables.
3)
A little glitch (feature?): The first jump is always about twice as high as all subsequent jumps.
4)
Add some restrictions so that the object cannot leave the screen (something like 'if obj.pX < maxx then...'
+ bits
|
|
|
|
|
|
Shyfire
|
Posted: Wed Jun 29, 2005 1:17 am Post subject: (No subject) |
|
|
ya im making a game using gravity heres a sample
warning it is still unfinished
Description: |
|
Download |
Filename: |
mario style game.zip.rar |
Filesize: |
231.43 KB |
Downloaded: |
223 Time(s) |
|
|
|
|
|
|
lil_mickey
|
Posted: Wed Jun 29, 2005 9:49 am Post subject: (No subject) |
|
|
yea that first jump thing really bewilders me...ill look into it.
As for the Mario game, it looks good so far...the jumping looks good, may i see the code for it?
but anyways, thanks for the tips (and the bits), ill go work on it some more.
|
|
|
|
|
|
Shyfire
|
Posted: Wed Jun 29, 2005 9:43 pm Post subject: (No subject) |
|
|
sure ill pm it to you just dont show it to the whole world k
|
|
|
|
|
|
lil_mickey
|
Posted: Wed Jun 29, 2005 10:07 pm Post subject: (No subject) |
|
|
alright, thanks man, really appreciate it.
|
|
|
|
|
|
|