Lesson 13 Hwk prob

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
hawkman398
Posts: 4
Joined: April 13th, 2013, 3:19 pm

Lesson 13 Hwk prob

Post by hawkman398 » April 15th, 2013, 7:39 pm

I can make the poo move in random directions and such, but when they move diagonally, they move to the side 1 pixel then down 1 pixel so they zigzag diagonally instead of just going down one pixel and over one pixel in the same frame.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Lesson 13 Hwk prob

Post by albinopapa » April 16th, 2013, 3:51 pm

The position of X and Y need to be updated in the same frame before the end of the composeframe() function. It sounds like position is being updated one variable per frame.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply