Author Topic: sprites scrolling  (Read 5216 times)

0 Members and 1 Guest are viewing this topic.

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
sprites scrolling
« on: May 30, 2010, 05:08:27 pm »
alright, I need someone to help me make a scrolling BG for my title screen

Code: [Select]
[FFFFFFFFFDFDFDFD]->Pic1
dispgraph
vertical +
for(A,0,95)
pt-off(50,A,Pic1)
pt-on(rand^96,A,Pic1)
end
This is supposed to be a rain/snow effect, so it needs to draw the sprites multiple times, and scroll all at once. Please help.
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: sprites scrolling
« Reply #1 on: May 30, 2010, 05:25:17 pm »
Put your Vertical + command in a Repeat loop.
« Last Edit: May 30, 2010, 05:33:18 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: sprites scrolling
« Reply #2 on: May 30, 2010, 06:05:14 pm »
it doesn't display the sprites actually
edit: whoops.. I didn't put a dispgraph in there XD
edit 2: yeah.. didn't make a difference. It's only displaying ONLY one sprite scrolling at one time.. and actually that's all it displays, is just one sprite, then it ends.
« Last Edit: May 30, 2010, 06:08:12 pm by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: sprites scrolling
« Reply #3 on: May 30, 2010, 06:11:40 pm »
The program should look like this:

Code: [Select]
:<data goes here>
:<For loop for drawing the sprites here>
:<Repeat loop WITH DISPGRAPH inside here>

And you might just be better off making a Pic of the rain and/or snow and showing that instead.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: sprites scrolling
« Reply #4 on: May 30, 2010, 06:12:23 pm »
So exactly what kind of sprite behavior would you like to see?

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: sprites scrolling
« Reply #5 on: May 30, 2010, 06:32:25 pm »


scrolling down just like that except with my pic1 sprite
« Last Edit: May 30, 2010, 06:33:01 pm by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: sprites scrolling
« Reply #6 on: May 30, 2010, 06:34:16 pm »
aha, so this is probably what you want then

Code: [Select]
[FFFFFFFFFDFDFDFD]->Pic1
While getKey!=15
pt-on(rand^96,A,Pic1)
Vertical +
DispGraph
End

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: sprites scrolling
« Reply #7 on: May 30, 2010, 06:37:25 pm »
ERR: bad symbol (showed it at while getkey!=15)
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: sprites scrolling
« Reply #8 on: May 30, 2010, 06:37:49 pm »
oh the != is the 'not equal' symbol

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: sprites scrolling
« Reply #9 on: May 30, 2010, 06:39:50 pm »
umm nope, that didn't do it. Sorry, only made a black screen
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: sprites scrolling
« Reply #10 on: May 30, 2010, 06:40:59 pm »
Well what is this sprite you are adding in?  Your sprite is mostly black so if a new one is being displayed every frame the screen would get black pretty quick.

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: sprites scrolling
« Reply #11 on: May 30, 2010, 06:42:01 pm »
its a 4 pixel high column of blank pixels in a black screen
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: sprites scrolling
« Reply #12 on: May 30, 2010, 06:46:22 pm »
try this

Code: [Select]
[FFFFFFFFFDFDFDFD]->Pic1
1->A
While getKey!=15
DS<(A,3
pt-on(rand^96,1,Pic1)
End
Vertical +
DispGraph
End

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: sprites scrolling
« Reply #13 on: May 31, 2010, 12:28:12 am »
if I remember he wanted to be able to do stuff like in the STARSHIP demo included with Axe Parser and the first program shown in the tribute video. Just not with that many sprites at once