
-----------------------------------
shadox321
Thu Dec 20, 2007 3:27 pm

How to add a score in my game
-----------------------------------
i was wondering if anyone could tell me how to add a score to my game every time the bullet hits the left side of the screen. if you can help that would be great

-----------------------------------
Zampano
Thu Dec 20, 2007 3:37 pm

Re: How to add a score in my game
-----------------------------------
What you need is a simple variable which adds a set amount to itself each time the bullet hits the left side of the screen.
if bulletx>maxx then
score:=score+1
end if

-----------------------------------
HeavenAgain
Thu Dec 20, 2007 5:12 pm

RE:How to add a score in my game
-----------------------------------
left side, not right Zampano, maxx is the far right side :p
0 is left

-----------------------------------
Zampano
Thu Dec 20, 2007 5:27 pm

Re: How to add a score in my game
-----------------------------------
Doh!

That's exactly the kind of mistake I make a lot while programming.

-----------------------------------
shadox321
Fri Dec 21, 2007 1:13 am

Re: How to add a score in my game
-----------------------------------
thanks alot guys lol

-----------------------------------
Sean
Fri Dec 21, 2007 2:22 pm

Re: How to add a score in my game
-----------------------------------
What you need is a simple variable which adds a set amount to itself each time the bullet hits the left side of the screen.
if bulletx>maxx then
score +=1
end if

Just to make it simple..

 :twisted:
