Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with collisions in pong
#5
(01-25-2024, 08:24 PM)aliensoldier Wrote: Thank you very much, it works very well. Smile

I have found a problem in naalaa that may be a bug or maybe it works like this.

For example, I am calling the ball from player cpu to access the "y" of the ball and make the player cpu move following the ball, but if I call the player cpu from ball to make the collision with the cpu I get fails.

If I access the data of the ball from the player cpu I cannot access the data of the player cpu from the ball. I don't know if it is a naalaa bug or it works this way, I have had to make some changes so that everything works from the ball but the code is growing a lot.

That sounds strange. Could you write a simple example that shows the bug or just add something to your game that makes the bug appear?
Reply


Messages In This Thread
RE: problems with collisions in pong - by Marcus - 01-24-2024, 07:10 PM
RE: problems with collisions in pong - by Marcus - 01-25-2024, 04:30 PM
RE: problems with collisions in pong - by Marcus - 01-25-2024, 08:34 PM
RE: problems with collisions in pong - by Marcus - 01-25-2024, 09:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)