Author Topic: [Axe] KarRace  (Read 11223 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Axe] KarRace
« Reply #30 on: December 19, 2012, 10:58:03 pm »
Now your talkin'.  Looks GREAT! :)

Have you thought about starting at a speed of 0 and increasing up to say... 250mph? As you speed up the lines move faster and faster.

I can't really make it go at a certain mph. I just do it by pixels. Right now it is going every 5px. The opponent cars are going 1px.
I like milk.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Axe] KarRace
« Reply #31 on: December 20, 2012, 12:59:39 am »
I've never used animated sprites, but it should be fairly simple.
[FE134RANDOMSPRITEINFO]->Pic1
[next animation2]
[next animation3]
[animation4]
Through the loop, have a counter go up by 1 - say variable I.
Instead of Pt-On(X,Y,Pic1)
do
Pt-On(X,Y,I^4+Pic1)

Something like that.
Yeah, something like that but not really :P
First of all, his sprites are not 8x8 so he surely doesn't use only one Pt-On. Let's say that he uses a routine called Display.
Then, I^4+Pic1 doesn't display the first sprite, then the second one, etc, but it displays the sprite composed of the 8 first bytes found at I^4+Pic1, so when I=0, it works, but when I=1, it displays the 7 last bytes of the first sprite and the first byte of the second one.
So the real formula is Display(X,Y,I^<number of frames in the animation>*<size in bytes of one sprite>+Pic1)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [Axe] KarRace
« Reply #32 on: December 20, 2012, 03:52:52 am »
I = 0 -> I^4*8 = 0 (anim 1)
I = 1 -> I^4*8 = 8 (anim 2)
I = 2 -> I^4*8 = 128 (nop won't work)

So the real formula =
0->I
Loop
If I= <number of anim>
0->I
End
Pt-on(X,Y,I*8 (or whatever size) +pic1)
I++
Endloop
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: [Axe] KarRace
« Reply #33 on: December 20, 2012, 07:43:43 am »
I agree with Hayleia. Multiply by the # of bytes a frame takes.
In Axe, the "^" is a modulus, the remainder, not a power.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [Axe] KarRace
« Reply #34 on: December 20, 2012, 07:45:54 am »
oooh ok, sorry, didn't know that xp

in that case, yes hayleia's formula is correct
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Roboman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 96
  • Rating: +10/-2
  • These peanuts taste so good!
    • View Profile
Re: [Axe] KarRace
« Reply #35 on: December 20, 2012, 11:12:01 am »
Now your talkin'.  Looks GREAT! :)

Have you thought about starting at a speed of 0 and increasing up to say... 250mph? As you speed up the lines move faster and faster.

I can't really make it go at a certain mph. I just do it by pixels. Right now it is going every 5px. The opponent cars are going 1px.

Well, you don't have to do MPH directly to change where the black lines are... you could say... add MPH/5 to the position of the lines?
:w00t:
UP-UP-DOWN-DOWN-LEFT-RIGHT-LEFT-RIGHT-B-A-ENTER


I always post in good faith!
http://en.wikipedia.org/wiki/Good_faith
If I end up being rude please tell me and understand!
Spoiler For Spoiler:
:-[  I never mean to say things ... negativley...
I am a bit socialy aqward so I often dont pick up on sarcasm or recognize myself being rude...

...

I am sorry for any offence...

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Axe] KarRace
« Reply #36 on: December 29, 2012, 03:17:44 pm »
*UPDATE*

Animated Wheels:

I like milk.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: [Axe] KarRace
« Reply #37 on: December 29, 2012, 03:18:52 pm »
wow, amazing :) nice work! it looks great

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Axe] KarRace
« Reply #38 on: December 29, 2012, 03:19:27 pm »
woo, the wheels are looking cool :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Axe] KarRace
« Reply #39 on: December 29, 2012, 09:19:31 pm »
woo, the wheels are looking cool :D

Thanks!

wow, amazing :) nice work! it looks great

Thanks to you too. :P
I like milk.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: [Axe] KarRace
« Reply #40 on: December 29, 2012, 09:21:23 pm »
Looks awesome! (There is an artifact at the top of the screen when a sprite is clipped at the bottom of the screen?)
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Axe] KarRace
« Reply #41 on: December 29, 2012, 09:23:15 pm »
Looks awesome! (There is an artifact at the top of the screen when a sprite is clipped at the bottom of the screen?)

I saw that, but I don't know why it does it...
I like milk.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [Axe] KarRace
« Reply #42 on: December 29, 2012, 09:28:09 pm »
It looks like somehow the LCD's z-address got set to 1 (or is it 63?), which makes it so the whole screen is shifted down one row and the bottom one row wraps around to the top. Hopefully it was just caused by some random one-time thing, in which case you should be able to fix it by archiving anything you want to save and then clearing your RAM.
« Last Edit: December 29, 2012, 09:37:08 pm by Runer112 »

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: [Axe] KarRace
« Reply #43 on: December 29, 2012, 09:35:48 pm »
Lookin' sweet Spenceboy98!!
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Axe] KarRace
« Reply #44 on: December 29, 2012, 09:50:34 pm »
It looks like somehow the LCD's z-address got set to 1 (or is it 63?), which makes it so the whole screen is shifted down one row and the bottom one row wraps around to the top. Hopefully it was just caused by some random one-time thing, in which case you should be able to fix it by archiving anything you want to save and then clearing your RAM.

It works fine on the regular calculator, so....

Lookin' sweet Spenceboy98!!

Thanks!
I like milk.