Welcome, Guest. Please login or register.

Author Topic: Ball isn't moving  (Read 3404 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Ball isn't moving
« Reply #14 from previous page: November 12, 2010, 09:45:59 PM »
@Omega Space Protons

Buy this. You won't regret it.
int p; // A
 

Offline Omega Space ProtonsTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 41
    • Show only replies by Omega Space Protons
Re: Ball isn't moving
« Reply #15 on: November 15, 2010, 03:30:05 PM »
Quote from: Karlos;591275
@Omega Space Protons

Buy this. You won't regret it.
Done. Now I just have to wait for them to ship it and we're in business.

Omega Space Protons
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Ball isn't moving
« Reply #16 on: November 15, 2010, 03:54:41 PM »
Quote from: Omega Space Protons;591938
Done. Now I just have to wait for them to ship it and we're in business.

Omega Space Protons


Well, it was certainly one of the best Amiga SW purchases I made. Even if you don't use the supplied IDE, the information on the CD is invaluable.
int p; // A
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2794
    • Show only replies by orange
Re: Ball isn't moving
« Reply #17 on: November 15, 2010, 04:06:09 PM »
Quote from: Omega Space Protons;589076
I'm glad you atleast Replied to my thread as having hundreds of people look at your thread and get no reply makes you want to have fits.


you should have chosen different title for thread, then.
Better sorry than worry.
 

Offline Tension

Re: Ball isn't moving
« Reply #18 on: November 15, 2010, 04:10:39 PM »
Quote from: Omega Space Protons;591938

Omega Space Protons


Congratulations on having the coolest user name ever.  Ever.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Ball isn't moving
« Reply #19 on: November 15, 2010, 04:10:42 PM »
It isn't really in the right forum, either. How about I move it to the development forum?
int p; // A
 

Offline nicholas

Re: Ball isn't moving
« Reply #20 on: November 15, 2010, 05:35:47 PM »
Quote from: Karlos;591955
It isn't really in the right forum, either. How about I move it to the development forum?


Indeed, I first thought it was a medical complaint.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline Omega Space ProtonsTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 41
    • Show only replies by Omega Space Protons
Re: Ball isn't moving
« Reply #21 on: November 15, 2010, 09:19:07 PM »
Oops sorry, didn't see the development forum. Thanks for the compliments about my username. By the way what is the correct way of using GetMsg() so the system doesn't wait for the dreaded 0x40000000 signal?

Omega Space Protons
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Ball isn't moving
« Reply #22 on: November 15, 2010, 09:25:47 PM »
I think the problem here is that you are waiting for the wrong stuff. You are waiting for an event to arrive. Under normal event-driven circumstances, that is the correct thing to do. However, your application is supposed to be constantly doing something, that is, animating the ball.

So, instead of waiting for an event to arrive, you should be waiting for the display refresh instead. Within that period, you iterate through the messages that have arrived at your port and perform any display updates that are required. There are a number of ways of doing this depending on whether or not you are running windowed, fullscreen or fullscreen with multibuffering.

For most fullscreen game applications, buffering is the norm since you don't want the user to ever see the items being drawn. There is a method of waiting using a "safe to switch buffers" message port that doesn't busy loop, unlike the somewhat simpler WaitBOVP() call (the latter doesn't always busy wait, in my experience, depends on the hardware it's running on).
 Anyway, there is an example of how to use this type of buffering in the RKM on the developer CD that you have purchased.
int p; // A
 

Offline Omega Space ProtonsTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 41
    • Show only replies by Omega Space Protons
Re: Ball isn't moving
« Reply #23 on: November 16, 2010, 03:31:09 PM »
Hey just an update, i just got an email message stating that my shipment is on the way. Is there any chance I could get a sneak peek of the "safe to switch double buffering" method, cause I would hate to wait a week for my CD to arrive before I can make any progress on my game.

Omega Space Protons