Author Topic: how to jump?  (Read 21229 times)

0 Members and 1 Guest are viewing this topic.

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #45 on: December 22, 2011, 12:25:52 am »
this is not really a mario clone only a platformer game :P

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #46 on: December 22, 2011, 12:28:25 am »
put your monster pxl test in he subroutine, in between the two point changes.....and I suggest moving the secon monster point change outside of the routine and after the displaygraph...do that and tell me what happens....ALSO BACK UP YOUR WORK!!!

did it work?
« Last Edit: December 22, 2011, 12:50:23 am by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #47 on: December 22, 2011, 12:51:03 am »
nah.. lol i dont know if i did the right thing but nothing is working now xD

can you show me what you mean in my code plz?
« Last Edit: December 22, 2011, 12:52:00 am by Cram »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #48 on: December 22, 2011, 12:56:05 am »
hmmm, This should'nt be that difficult....go back to what you had, and just move the pxltest monster thing around... I think  you are just telling it to check for an ON pxl when it is also changing spots...so it doesn't read it

I meant

0→r→d→z→j+43→y+27→x
0→w+27→u
15→v
repeat getkey(15)
sub(MMO)
if pxl-test(u-1,v+7)=1
return
end
if getkey(2) and (pxl-test(x,y+7)≠1)
x-1→x
if z=0
2→z
elseif z=2
0→z
end
elseif getkey(3) and (pxl-test(x+7,v+7)≠1)
x+1→x
if z=0
2→z
elseif z=2
0→z
end
end
if getkey(1) and pxl-test(x+5,y+8)
3→z
elseif getkey(4)
0→z
end
if getkey(54) and (pxl-test(x+2,y+8) or pxl-test(x+6,y+8)
15→j
1→z
end
if(j>0)
j-1→j
y-1→y
end
if(pxl-test(x+6,y+8) or pxl-test(x+2,y+8)=o and (j=0)
0→j
0→z
y+1→y
end
if y=49
return
end
pause 25
pt-change (x,y,z*8+pic0p1
dispgraph
pt-change (x,y,z*8+pic0p1
pt-change(u,v,r*8+pic-M1
end

lbl mmo
pt-change(u,v,r*8+pic0M1
if u≥27 and w=0
u+1→u
elseif u≤62 and w=1
u-1→u
end
if u=27
0→w
elseif u=62
1→w
end
return

edit: and if that doesn't work I got one more idea....lol, you'll learn very quickly that a lot of coding is trial and error :P
« Last Edit: December 22, 2011, 01:02:21 am by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #49 on: December 22, 2011, 01:02:19 am »
yes that what i did but i had to put the first pt-change in the end of mmo just before return but it still not work.. :(

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #50 on: December 22, 2011, 01:03:46 am »
try pxl-testing U and V right before the display graph...cuz your trying to see if it is hitting your character...but you need your character to move before it can test that
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #51 on: December 22, 2011, 01:05:53 am »
yeah that it exactly what i just did and he work now ;D thx for all your time! :)

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #52 on: December 22, 2011, 01:07:49 am »
:) sure thing! lol and remember to always back up your work! For my seeker game ( check it out if you don't know it, It's a pretty good platformer..not done yet though) I've hit even worse bugs, and have had over 30 ram clears!! lol trial and error my friend, trial and error :)
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #53 on: December 22, 2011, 01:09:09 am »
ahah yeah we learn from error :P

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #54 on: December 22, 2011, 01:12:07 am »
unless your a perfect coding guru, who never errors.....I wish I was one lol!

edit: to be honest, I should have know it was needed by the displaygraph! lol, thats like common sense! I think it was the subroutine throwing me off :P
« Last Edit: December 22, 2011, 01:15:55 am by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #55 on: December 22, 2011, 01:18:04 am »
probably xD well i think i will never do this error again  :banghead:

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #56 on: December 22, 2011, 01:23:05 am »
Good! Also (as I hinted above *cough cough*) you can always check out my Seeker thread to see how that platformer is going :) When I first made platformers,I got Ideas from other ones, :) PLUS I need more people to test it! which I posted a demo if you have free time! also do you want me to tell you about wabbit emu now?
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: how to jump?
« Reply #57 on: December 22, 2011, 02:03:32 am »
im going to sleep now but you can tell me and tomorrow i will look it + test your game :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: how to jump?
« Reply #58 on: December 22, 2011, 03:33:11 am »
Also since you are into Axe, an advice I must tell you early before you get too far into a project then get a surprise is backing up your progress often. Sometimes in Axe if you do an error, you will get a RAM clear or archive corruption, losing all your work. It's always good to copy your progress on an hard drive and a flash drive from time to time. 

Good luck!
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: how to jump?
« Reply #59 on: December 22, 2011, 10:52:58 am »
SEE even DJ does it :) lol and now to wabbit Emu.....basically it is an emulater for your calc, you can download it for windows or mac at http://wabbit.codeplex.com/releases/view/44625 and then follow the install instructions. I'll tell you now you are going to need to get Rom images from your calc which is explained how to in the install window, But have our calc at hand! and if you don't have TI connect...get it (I assume you do) although it is usually stupid and doesn't always transfer files.

Why do I need these?:

with TI Connect, you will be able to transfer files to and from your calc AND THEN

You can simply drag them to an open Emu window to test/get screenie/mess with, with out worrys of stupid RAM clears!....well you still get them but, it matters less.

Screenies:
when you have all this installed and a Emu window open, you can now enter the wonderful world of SCREENIES!! very helpful in shwing off your work and getting help with bugs

Just press backspace.....you'll see a blue thing around the screen, which means it is recording, and the press backspace again to stop. this will safe the screen shot as a .gif file in what ever location you specified during install (I think...you'll figure that out it's easy,just mess around with it a little)

The you can upload screenies here, by clicking Reply, then choose file for attachments, and finally finding your file. EASY!

I also recommend downloading noshell for your Emu because, then you don't have to worry about most of the shells. just download and install from apps (noshell is also good on calc, in my opinion)

find that at http://www.ticalc.org/archives/files/fileinfo/400/40005.html

well thats a simple over view, if you have any questions, you always have me, omni, or youtube :) good luck!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: