Author Topic: [PROJECT] Racer3D: Replay  (Read 30145 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PROJECT] Racer3D: Replay
« Reply #30 on: November 10, 2010, 12:26:35 pm »
Hmm I think you absolutely need rechargeable batteries and I don't think the Nspire can recharge them via USB. If I remember, it was possible to use the Nspire in USB mode without using battery power, though.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #31 on: November 10, 2010, 01:04:32 pm »
Hmm I think you absolutely need rechargeable batteries and I don't think the Nspire can recharge them via USB. If I remember, it was possible to use the Nspire in USB mode without using battery power, though.

Damn, gonna need new batteries

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PROJECT] Racer3D: Replay
« Reply #32 on: November 10, 2010, 01:59:30 pm »
Sorry to hear. I hope you can get some soon.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #33 on: November 10, 2010, 04:17:13 pm »
Sorry to hear. I hope you can get some soon.

Gotcha, fixed the arrows bug, next thing I'll add is option for sprites :)

EDIT: 4 downloads, need one more to hit my limit
« Last Edit: November 10, 2010, 04:17:44 pm by ScoutDavid »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PROJECT] Racer3D: Replay
« Reply #34 on: November 10, 2010, 11:29:24 pm »
Your limit? ???

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #35 on: November 10, 2010, 11:33:41 pm »
Nice. :)
I like putting the Turning Speed to 65535. ;D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PROJECT] Racer3D: Replay
« Reply #36 on: November 11, 2010, 12:22:26 am »
Lol I tried around 20 I think and it insanely turned fast.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #37 on: November 11, 2010, 12:27:23 am »
Sorry to hear. I hope you can get some soon.

[offtopic] I was scrolling up this thread from the bottom and ran across this post, without seeing what it was referencing... Out of context it sounds interesting ;) [/offtopic]
« Last Edit: November 11, 2010, 12:28:12 am by Runer112 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PROJECT] Racer3D: Replay
« Reply #38 on: November 11, 2010, 12:29:31 am »
What would it refer to out of context? ;D

is it an english expression/idiom I am unfamiliar with? Or is it more like most of the IRC quotes from #omnimaga? ;D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #39 on: November 11, 2010, 09:24:30 am »
Nice. :)
I like putting the Turning Speed to 65535. ;D

So do I, it's very weird. 65534 works too, when you set speeds above 20, press right or left and you lose.

My doubt: change sprite temporarily

Code: [Select]
.MOVE
If getKey(2)
X+2->X
Horizontal +
Line(0,24,0,rand^4+21)
StorePic
End
If getKey(3)
X-2->X
Horizontal -
Line(95,24,95,rand^4+21)
StorePic
End

This is the MOVE code, strangely using the same as Quigibo's because it works very well!

Ok, I have two sprites:

[3C7E427EFF99FF42]
and
[00007E4242FFFF42]

(this are not the final sprites, this is just a test)

How could I make the second sprite be used only when you press left and right, and the first sprite when you are not pressing any of them.

I've tried many things, always giving me an error :S
« Last Edit: November 11, 2010, 10:15:14 am by ScoutDavid »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [PROJECT] Racer3D: Replay
« Reply #40 on: November 11, 2010, 01:32:53 pm »
You could try doing something where when you press left or right it stores a certain value to an offset variable, and when nothing is pressed zero is stored to it. Then just set that offset value to offset the sprite data so you're showing the correct one. Does that make sense?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #41 on: November 11, 2010, 01:52:48 pm »
What would it refer to out of context? ;D

is it an english expression/idiom I am unfamiliar with? Or is it more like most of the IRC quotes from #omnimaga? ;D

http://www.urbandictionary.com/define.php?term=get%20some

;D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Racer3D: Replay
« Reply #42 on: November 11, 2010, 01:53:43 pm »
What would it refer to out of context? ;D

is it an english expression/idiom I am unfamiliar with? Or is it more like most of the IRC quotes from #omnimaga? ;D

http://www.urbandictionary.com/define.php?term=get%20some

;D

-.- let's just forget that hah

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [PROJECT] Racer3D: Replay
« Reply #43 on: November 11, 2010, 02:14:36 pm »


So do I, it's very weird. 65534 works too, when you set speeds above 20, press right or left and you lose.

My doubt: change sprite temporarily

This is the MOVE code, strangely using the same as Quigibo's because it works very well!

Ok, I have two sprites:

[3C7E427EFF99FF42]
and
[00007E4242FFFF42]

(this are not the final sprites, this is just a test)

How could I make the second sprite be used only when you press left and right, and the first sprite when you are not pressing any of them.

I've tried many things, always giving me an error :S


Use something like
Code: [Select]
[3C7E427EFF99FF42]=>Pic1NT    (NT: Not-Turn)
[00007E4242FFFF42]=>Pic1T      (T: Turn)

If getKey(2)+(getKey(3))
Pt-On(Xpos,Ypos,Pic1T)
Else
Pt-On(Xpos,Ypos,Pic1NT
End

that would work, just add a DispGraph , else you wont see anything ;D

(PS: NP)
I'm not a nerd but I pretend:

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [PROJECT] Racer3D: Replay
« Reply #44 on: November 11, 2010, 02:49:40 pm »


So do I, it's very weird. 65534 works too, when you set speeds above 20, press right or left and you lose.

My doubt: change sprite temporarily

This is the MOVE code, strangely using the same as Quigibo's because it works very well!

Ok, I have two sprites:

[3C7E427EFF99FF42]
and
[00007E4242FFFF42]

(this are not the final sprites, this is just a test)

How could I make the second sprite be used only when you press left and right, and the first sprite when you are not pressing any of them.

I've tried many things, always giving me an error :S


Use something like
Code: [Select]
[3C7E427EFF99FF42]=>Pic1NT    (NT: Not-Turn)
[00007E4242FFFF42]=>Pic1T      (T: Turn)

If getKey(2)+(getKey(3))
Pt-On(Xpos,Ypos,Pic1T)
Else
Pt-On(Xpos,Ypos,Pic1NT
End

that would work, just add a DispGraph , else you wont see anything ;D

(PS: NP)


Going off that method and my method combined you could do:

Code: [Select]
[00007E4242FFFF423C7E427EFF99FF42]→Pic1
Pt-On(X,Y,Pic1+A
If getKey(2)+(getKey(3))
8→A
Else
0→A
End

Or what ever that equivalent for the Pic1+8 part is (I don't know if you need curly brackets or anything or if that's the correct number or not). Might save some space in the end or something. Just a thought.
« Last Edit: November 11, 2010, 03:16:57 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)