
-----------------------------------
lil_mickey
Tue Jun 28, 2005 10:06 pm

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.}

-----------------------------------
Delos
Tue Jun 28, 2005 11:08 pm


-----------------------------------
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
Wed Jun 29, 2005 1:17 am


-----------------------------------
ya im making a game using gravity heres a sample
warning it is still unfinished

-----------------------------------
lil_mickey
Wed Jun 29, 2005 9:49 am


-----------------------------------
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
Wed Jun 29, 2005 9:43 pm


-----------------------------------
sure ill pm it to you just dont show it to the whole world k

-----------------------------------
lil_mickey
Wed Jun 29, 2005 10:07 pm


-----------------------------------
alright, thanks man, really appreciate it.
