Author Topic: Mario?  (Read 16357 times)

0 Members and 1 Guest are viewing this topic.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Mario?
« Reply #30 on: October 30, 2011, 08:19:37 pm »
oh Great! I cant wait!
This used to contain a signature.

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: Mario?
« Reply #31 on: October 30, 2011, 08:23:45 pm »
Thanks, I'll get on it right now
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #32 on: October 31, 2011, 12:10:58 pm »
You just want to make your own sidescroller game? There are some good tutorials about tilemapping, smooth scrolling and gravity in this board.
If you like my work: why not give me an internet?








Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Mario?
« Reply #33 on: October 31, 2011, 12:48:18 pm »
but collision s the most complicated!, Damn!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Mario?
« Reply #34 on: October 31, 2011, 12:50:37 pm »
pxl-test?
Sig wipe!

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Mario?
« Reply #35 on: October 31, 2011, 12:51:32 pm »
My method (i never realised some good collisions) is with corners detection, because my perso is as tall as the tile's size

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Mario?
« Reply #36 on: October 31, 2011, 02:21:56 pm »
That method works excellent as long as your person is never larger than the tiles he is colliding with ^^ That's what I have used on many of my games, as well as my Zedd Physics Library, so it's a very well used method :)

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #37 on: November 02, 2011, 04:19:13 pm »
but collision s the most complicated!, Damn!
Tile based works perfectly. I use this:
Code: [Select]
:If getKey(2) and (X≠0)      //Left
:sub(CC,X,Y,X,Y+7
:!If R
:X-1→X
:End
:ElseIf getKey(3) and (X≠88) //Right
:sub(CC,X+7,Y,X+7,Y+7
:!If R
:X+1→X
:End
:End
(just left and right to show the concept. The collision box has to be the same size as the tiles or else you might get stuck in walls)
Code: [Select]
:Lbl CC
:{r2/8*12+(r1/8)+GDB1}→r5
:{r4/8*12+(r3/8)+GDB1}→r6
:r5+r6→R
:Return
« Last Edit: November 03, 2011, 10:18:24 am by Keoni29 »
If you like my work: why not give me an internet?








Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Mario?
« Reply #38 on: November 02, 2011, 05:49:14 pm »
What meanq sub in AP?

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #39 on: November 03, 2011, 10:22:48 am »
What meanq sub in AP?
\
It means "subroutine." It's a routine executed within a routine. When you call a subroutine it jumps to the label of the subroutine and it exits the subroutine when it reaches the last line of code or :Return. It's very similar to a function, but it has no return value, so I used R to store the outcome in.
Syntax: Sub(LABEL,parameter,parameter,parameter,parameter etc
If you like my work: why not give me an internet?








Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Mario?
« Reply #40 on: November 03, 2011, 11:59:07 am »
better syntax: LABEL(parameter,parameter etc
Sig wipe!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #41 on: November 03, 2011, 01:37:09 pm »
better syntax: LABEL(parameter,parameter etc
??? is that new?
If you like my work: why not give me an internet?








Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Mario?
« Reply #42 on: November 03, 2011, 02:37:57 pm »
better syntax: LABEL(parameter,parameter etc
??? is that new?
I think it came with 1.0.1 or so with these many updates.
Edit: 1.0.0
« Last Edit: November 03, 2011, 02:39:31 pm by MGOS »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #43 on: November 03, 2011, 02:38:29 pm »
better syntax: LABEL(parameter,parameter etc
??? is that new?
I think it came with 1.0.1 or so with these many updates.
Is it faster?
If you like my work: why not give me an internet?








Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Mario?
« Reply #44 on: November 03, 2011, 02:40:45 pm »
better syntax: LABEL(parameter,parameter etc
??? is that new?
I think it came with 1.0.1 or so with these many updates.
Is it faster?
No, it's just another syntax form to do exact the same thing. But it saves one or two bytes in your source.
« Last Edit: November 03, 2011, 02:41:59 pm by MGOS »