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 / Tennis\pong collision problem

Author
Message
Milky the purple crab
19
Years of Service
User Offline
Joined: 5th Aug 2005
Location:
Posted: 6th Jul 2006 14:35 Edited at: 6th Jul 2006 15:21
Hi, I'm trying to make a little tennis kinda game, my problem is I can't get object 1(sphere) to bounce off object 3(box) Could someone look through my code to see what's wrong? thanks in advance.

MILKY



EDIT: oops forgot to say that I'm using DBC

I don't fear pain.....I fear feeling it.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 6th Jul 2006 19:20 Edited at: 6th Jul 2006 19:25
I use DBP, but I will still try to help. I will edit this message as I find more.


Haven't found the problem yet, but you aren't supposed to put sync on in the loop. You are supposed to do this outside of the loop and then sync in the loop


Edit-----

Solved. You had one if inside another when it shouldn't have been. This works (for DBPro at least)




Edit----

After studying your code some more I wonder why you
"set global collision on". You don't need this (at least with DBP)

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 6th Jul 2006 19:35
It's usually a "just in case" command.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Milky the purple crab
19
Years of Service
User Offline
Joined: 5th Aug 2005
Location:
Posted: 7th Jul 2006 04:56
It still doesn't work

I set global collision on because I thought it was needed for collisions....???

MILKY

I don't fear pain.....I fear feeling it.

Login to post a reply

Server time is: 2024-11-26 16:50:58
Your offset time is: 2024-11-26 16:50:58