Author Topic: Mario Shotgun and screenie  (Read 12138 times)

0 Members and 1 Guest are viewing this topic.

Offline Thundermagnet

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +9/-0
  • Thundermagnet Productions
    • View Profile
Re: Mario Shotgun and screenie
« Reply #15 on: November 09, 2011, 07:57:28 pm »
I took a look at your code...  Why don't you pull those lines inside your main loop to just before?  It would definately increase speed.
Look me up on iTunes!  =D

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 Shotgun and screenie
« Reply #16 on: November 09, 2011, 08:09:51 pm »
I'll fix that. thanks!

EDIT: Ok I moved the 'repeat getkey(15)' to after the last line(, and wow that does speed it up a lot!
        But I won't update the file yet, because that was way to easy of a fix :)
« Last Edit: November 09, 2011, 08:12:43 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Thundermagnet

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +9/-0
  • Thundermagnet Productions
    • View Profile
Re: Mario Shotgun and screenie
« Reply #17 on: November 09, 2011, 08:19:16 pm »
I have to get going on my homework, but the menu is almost done!  I am very pleased with it.  The Game  :evillaugh: that you are making might be a big hit!
Look me up on iTunes!  =D

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 Shotgun and screenie
« Reply #18 on: November 09, 2011, 08:22:16 pm »
I hope so! It's like Mario, Shot Guns, AND donkey kong
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Mario Shotgun and screenie
« Reply #19 on: November 09, 2011, 08:40:35 pm »
Mind if I help out some? I need something to do tomorrow, so I may look at your source.

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 Shotgun and screenie
« Reply #20 on: November 09, 2011, 08:43:12 pm »
Help your self! :) just send back the file when your done with whatever you do, so I can see what you did. :)
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Mario Shotgun and screenie
« Reply #21 on: November 09, 2011, 10:18:26 pm »
Ok,could you comment each section so I can get a feel for what the code is doing? Not every line, but just stuff like "collision detection" and "gravity". I saw a ton of small things that could be optimized, but to get to the big stuff, I need more info. Thanks for letting me help :)

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Mario Shotgun and screenie
« Reply #22 on: November 09, 2011, 10:22:11 pm »
Ok, I got the  flag detection working, but I don't have time to upload it so I'll just post the source here:
Code: [Select]
:.see if player is at flag
:If ((X>=3) and (X<=5) and (Y<2))
:Goto WIN
:End
:
:Lbl WIN
:ClrHome
:Disp "You Win!"
:Repeat getKey
:End
is that what you are looking for?
« Last Edit: November 09, 2011, 10:23:07 pm by parser padwan »

Offline Thundermagnet

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +9/-0
  • Thundermagnet Productions
    • View Profile
Re: Mario Shotgun and screenie
« Reply #23 on: November 09, 2011, 10:22:24 pm »
That is what he is looking for!
I find it so interesting that people are sometimes on here just to debug other people's programs.   :D
« Last Edit: November 09, 2011, 10:24:43 pm by Thundermagnet »
Look me up on iTunes!  =D

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Mario Shotgun and screenie
« Reply #24 on: November 09, 2011, 10:23:37 pm »
is it optimized too much?
I can't think of any other way to do it...

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Mario Shotgun and screenie
« Reply #25 on: November 09, 2011, 10:25:57 pm »
It may be a good idea to use a tilemap for things like the flag and anything else you want, with the goomba(s?) and player drawn over. That way you could add things like items and other action causing things really easily. I recently did that with Jump, and it worked well. It will require some work, but I will be happy to help if you chose to do this.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Mario Shotgun and screenie
« Reply #26 on: November 09, 2011, 10:30:13 pm »
Ooh tilemap...
* parser padwan doesn't know how to use those... :(

Offline Thundermagnet

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +9/-0
  • Thundermagnet Productions
    • View Profile
Re: Mario Shotgun and screenie
« Reply #27 on: November 09, 2011, 10:36:32 pm »
Ooh, tilemapping!  Thundermagnet does not know how to use that either.  Thundermagnet can't even use arrays!
Look me up on iTunes!  =D

Offline Thundermagnet

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +9/-0
  • Thundermagnet Productions
    • View Profile
Re: Mario Shotgun and screenie
« Reply #28 on: November 09, 2011, 11:03:00 pm »
If you lose, how about instead of "You Lose", it says: "You Lost the Game"?
Whoops!  I just lost the game.
I am still losing the game.
Still losing the game!
 :mad: :mad: :mad:
Look me up on iTunes!  =D

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Mario Shotgun and screenie
« Reply #29 on: November 09, 2011, 11:21:53 pm »
lol then it would be just like swords...  ::)
lol I just found out this:  :hyper: when you hover over it it says "you just lost the game"  ._.