Jump to content

Photo

Displaying Scores - Help requested


6 replies to this topic

#1 CyranoJ OFFLINE  

CyranoJ

    Quadrunner

  • 5,325 posts
  • RAPTOR in LOCAL
  • Location:Adelaide, SA

Posted Mon May 8, 2017 12:19 AM

Hi guys,

 

could someone assist Jeffrey out with this one? I haven't got time to respond, and it looks like he needs a bit of help:

 

Attached File  scores_help.png   43.38KB   1 downloads

 

Thanks everyone, keep up the good work with your rB+ projects!



#2 omf OFFLINE  

omf

    Dragonstomper

  • 773 posts

Posted Mon May 8, 2017 12:52 AM

dim a as UINT

 

 

'score shit is added to 'a'

 

do

'game loop goes here

rlocate 10,10

rprintint a

 

vsync

loop

 

 

 

 

this is VERY basic stuff, covered in rb+ documentation, the dodger example and probably 95% of every other example you look at

the only thing that may not be covered is UINT which translates to 'dim a as long' in vb terms

 

seriously, if you cant do this stuff with text then you should stop now.


Edited by omf, Mon May 8, 2017 12:53 AM.


#3 Jeffrey_Bones OFFLINE  

Jeffrey_Bones

    Dragonstomper

  • 954 posts
  • Location:Charlotte, NC

Posted Thu May 11, 2017 11:02 AM

Never mind I got it to work!

Attached Files


Edited by Jeffrey_Bones, Thu May 11, 2017 11:10 AM.


#4 Jeffrey_Bones OFFLINE  

Jeffrey_Bones

    Dragonstomper

  • 954 posts
  • Location:Charlotte, NC

Posted Thu May 11, 2017 12:27 PM



#5 omf OFFLINE  

omf

    Dragonstomper

  • 773 posts

Posted Thu May 11, 2017 3:23 PM

dont forget to set the hit pointer to nothing again in the objects



#6 CyranoJ OFFLINE  

CyranoJ

    Quadrunner

  • Topic Starter
  • 5,325 posts
  • RAPTOR in LOCAL
  • Location:Adelaide, SA

Posted Thu May 11, 2017 3:35 PM

If score=score+20, how did you manage to score 30?



#7 Jeffrey_Bones OFFLINE  

Jeffrey_Bones

    Dragonstomper

  • 954 posts
  • Location:Charlotte, NC

Posted Thu May 11, 2017 3:45 PM

If score=score+20, how did you manage to score 30?


Hit the pizza first for +10 and then the burger for +20. Thats good because I was worried about it adding the numbers correctly the way I had it. I didnt realize you had to call rprint in the subroutine where the score actually counts and then I wasnt sure if every score action had to rprint (thank God thats not the case)



Reply to this topic



  


0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users