Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Pong Question

Author
Message
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 13th Mar 2006 20:17
Well basiclly i have one question , ive created two bats using the box command and a ball using the circle command , i think that i know how to create a colossion but i dont have any idea how to make the other bat move by the computer and hit the ball
Dodic
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 13th Mar 2006 20:29
Well, make the other bat to follow the balls position (for instance x) and thats about it.

Currently working on (trying) making a new 3d engine for/within dark basic classic out of basic 2d commands, with vertex edit supported.
DB newbie
18
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 13th Mar 2006 20:33
exactly what Dodic said but try and check out the Pong tut. on one of the stickies on the forum. the only probplem with the tut. is that it is for 2 people to play.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 14th Mar 2006 22:26
Well i didnt really got it but i have a diffrent prob now .
I thought that i knew how to make the colossion but its not working .
any1 have any idea how should i create the colossion of the ball and the bat ?? ,. Anyway this is what i got so far ;;

RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 14th Mar 2006 22:36
This is what i first have in mind but i dont know why its not working

RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 15th Mar 2006 18:56
Any1?
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 15th Mar 2006 21:44
maybe you have too many AND statements?

Only when the last tree is cut, the last river is dammed, and the last spot of ground is paved will we realize we can't eat money
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 15th Mar 2006 21:59
So how should i write it ?
H4ck1d
18
Years of Service
User Offline
Joined: 27th Dec 2005
Location: Yes
Posted: 15th Mar 2006 22:29
Well, first off your "and's" should be on the same line as the if. Also, I think you have the comparatives reversed (aka change "=<" to "<="). I don't know if that makes a difference or not, but give it a try.



There are 10 types of people, those who understand binary and those that don't.
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 16th Mar 2006 13:54
No its not the syntax its just not working

Login to post a reply

Server time is: 2024-09-24 19:29:02
Your offset time is: 2024-09-24 19:29:02