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 / can some one help

Author
Message
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 16:43 Edited at: 26th Nov 2006 17:17
i am makeing a pong game and i used the scirpe form one totrlel and now i want to make break out blocks in the middle heres the code and a screen of what i have this is not my code i wanted to use it as a base and make it better

i aslo am useing darkbasic pro
just so you know

Your signature was too big

Attachments

Login to view attachments
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 26th Nov 2006 18:08
This code should put a couple of break out blocks in the middle of your level. It's pretty basic so you may want to play around with it... (Put more blocks in the level, make the blocks smaller etc.)

zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 18:24
thanks i will

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 19:45
o ya can you aslo tell me how to make the second player an ai instend of a player
im brand new at this i only have the trile so im not so good at programing

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 19:46 Edited at: 26th Nov 2006 21:55
ok i just figuerd out the lighting but i still need help with ai

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 26th Nov 2006 22:52
Hey you finally dropped Visual Basic and came to Darkbasic Pro. Welcome aboard!
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 23:28
i saw that comeing well this is only the trial but il try to get the game done i try to uplode it some day

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 23:37
hey can you aslo do somthing for me i need to remove the second player and have ai insdend can you do that for me il give you the code


Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 26th Nov 2006 23:55
I won't do it for you but I will tell you one fact that'll help you. You know exactly where the ball is at all times.
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 26th Nov 2006 23:57
i have no cule how to do that at all

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Nov 2006 00:15 Edited at: 27th Nov 2006 00:16
Think about my last statement for a bit before you open the first clue... these are like infocom invisiclues.

"You know exactly where the ball is at all times."

Clue #1:


Clue #2:


Clue #3:


Clue #4:
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 00:31
?????????????????????????????? i have no clue

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 00:37
im starting to get it now i cant get it to move with out help

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 00:38
im going to cry im so happy i figured it out

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Nov 2006 01:14
Did you post for every clue?
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 01:26
i just saw the ballz thing and just stared to tweak with the ballxs and player2pos# things
and BAM we got ai

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 01:29
how do i make like gloweing power ups that would make the ball smaller i mean like a poer up in side one of the blocks
mabey if i can get something like that il start a wip

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Nov 2006 21:01
Well you just make an object appear and start to move towards the paddle opposite the ball direction. Check for collision of that object with the paddles... once that powerup object hits a players paddle change the ball size.
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 27th Nov 2006 22:40
im kinda geting it di i need to use a hide objec command

some thing kinda like this
something like that

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 28th Nov 2006 08:34
I would create the object when a powerup is found... not create it and hide it.
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 28th Nov 2006 22:33 Edited at: 28th Nov 2006 22:36
like show me what you mean in a part of a code so i can figureit out

becuse i still havent goten power ups im trying to figure it out

Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 28th Nov 2006 23:36
If I show you in code you'll have the answer and you won't figure it out yourself. You know where the blocks are... all you have to do is take the coordinates from the block that's removed, create the powerup object, and move it towards the last player to hit the ball. Check for collision just like you check the collision with the ball to the player (only use the object number of the powerup instead of the ball) and once collision happens change the size of the ball.
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 28th Nov 2006 23:45
but when i createt a new object i keep geting erors

Your signature was too big
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 28th Nov 2006 23:51
is this close


Your signature was too big
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Nov 2006 07:42
In a word... no.

That line doesn't make sense. You don't want to change "ballz#"... and Darkbasic isn't going to make "ballz#" equal a 3D object. Also if your wanting to create a new object you don't want to use the object number of the ball (object number 3 already exists) or try to position an object that doesn't exist (object number 6).

It's almost as if you just want code and not even attempt to learn to code by yourself. Did you write that pong code or did you copy it from somewhere?
zork all the way
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 2nd Dec 2006 23:22
i used a base and started to add on to it bit by bit but most of the code is not mine but i was able to get the ai going with out help

Your signature was too big

Login to post a reply

Server time is: 2024-09-25 13:30:21
Your offset time is: 2024-09-25 13:30:21