Author Topic: RoboGun: My first big axe game  (Read 21855 times)

0 Members and 1 Guest are viewing this topic.

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #75 on: November 12, 2011, 10:18:59 pm »
Yeah, it has to do with a abuse of the hl register.
For example, in Text(40,-39,"HEALTH:"), It stores 40 into hl (kinda like Ans in Ti-Basic), then subtracts 39 from hl for the y coord, which makes it 1 (so, the text is displayed at (40,1) or (40,40-39))
Hope that made sense ;D

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #76 on: November 12, 2011, 10:20:04 pm »
Oh. I used negative.  I forgot about the hl.
A few posts back you said had something to do with the abs(
« Last Edit: November 12, 2011, 10:25:53 pm by epic7 »

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #77 on: November 12, 2011, 10:26:39 pm »
Oh. I used negative.  I forgot about the hl.
A few posts back you said had something to do with the abs(

I thought you were talking about something else :P

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #78 on: November 12, 2011, 10:27:42 pm »
The way it removes health seems better with the double if...
It still tends to jump back up to full and stay that way sometimes.
« Last Edit: November 12, 2011, 10:34:23 pm by epic7 »

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #79 on: November 12, 2011, 10:35:00 pm »
Why? Faster?
If so, use the X If first, it has less of a chance of being true

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #80 on: November 12, 2011, 10:36:58 pm »
I figured y would :P
Trying to figure out the mystery of the WTF health bar regeneration now...


Ok, changed it. I tested it about 15 times. It screwed up once.
« Last Edit: November 12, 2011, 10:47:20 pm by epic7 »

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #81 on: November 12, 2011, 10:46:13 pm »
Well, look for anything that is stored to E
And did the Rect() fix work?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #82 on: November 12, 2011, 10:54:54 pm »
Rect works. I'll have to make sure nothing else is E. Im losing track of all my variables.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #83 on: November 13, 2011, 08:24:58 pm »
Updates:
Death screen
Animation of killing enemies
Pretty much working health bar
Levels!
Maybe other stuff that I forgot to say :P

Malfunctioning D: :
With 4 or less enemy waves:
     Health malfunctions: 6%
     Enemy invincibility: 5%
     No enemy regeneration: 5%
With 5 or more enemy waves:
     Health malfunctions: 70%
     Enemy invincibility: 90% (chance of at least one being invincible per wave)
     No enemy regeneration: ?

Usually cant find no regeneration percent with >4 since enemies are almost always invincible. D:
It suddenly changes to not working once it exceeds 4.

Screenie of new stuff including flaming death :P
« Last Edit: November 13, 2011, 09:08:19 pm by epic7 »

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: Robo-Gun: My first big axe game
« Reply #84 on: November 13, 2011, 09:08:13 pm »
This is gonna be SO awesome!.... er um Epic! :) can't wait to see the finished project!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #85 on: November 13, 2011, 09:08:58 pm »
Thanks!

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #86 on: November 13, 2011, 10:09:39 pm »
Want a gun sprite?
[0000027FB8C08000]

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #87 on: November 13, 2011, 10:11:52 pm »
Yeah. My gun sprites start to get demented :P

Cool. Ill put that in :)
« Last Edit: November 13, 2011, 10:15:11 pm by epic7 »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #88 on: November 15, 2011, 07:01:33 pm »
Halp! It skips level to in my level menu. The first 3 args are the requirements to pass the level.
The only thing different about the level 2 is that it requires a certain amount of money instead of enemy kills

Code: [Select]
.A is for level
If A=1
.The first argument is the money requirement
GAME(0,6,0,4,3,1
ElseIf A=2
GAME(300,0,0,4,3,1
ElseIf A=3
(goes on with different args 'till A=8)
End
.Lotsa stuff
Lbl GAME
.Lotsa stuff
For(P,0,r5)
.Lotsa stuff
 If (r2<J) and (r1<G) and (r3<L)
.G is the amount of money the user has
A++
G-r1->G
1->N
.Level up and return
Return
End
DispGraph
End

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #89 on: November 17, 2011, 04:15:10 pm »
Almost done :)
My main problem now is the BUGS!
I'm going to keep the max enemy count on the screen under 5 to avoid the problems there :P
The worst bug is probably the health bar suddenly going back up to the top.

I'll just try the Buttsfredskin strategy  XD
Write down the problem, think hard, find the answer :P