Put pixel function not working

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Put pixel function not working

Post by cameron » December 4th, 2012, 11:05 pm

So i finished the thing in intermediate lesson 6 where we optimized put pixel. So I'm going to try to improve my ship game. But the optimized put pixel isn't drawing my ships bullets like at all. I have no idea why. I know my work was very disorganized and that's because I made this game during beginner lesson 14. So I'm going to remake the whole game soon but, I need to figure this out first.
Attachments
shipgame-sound,mouse,extra keys - Copy.rar
(170.69 KiB) Downloaded 132 times
Computer too slow? Consider running a VM on your toaster.

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: Put pixel function not working

Post by cameron » December 5th, 2012, 10:09 pm

All I did to make this not work is put the new putpixel function in. The ships bullets wont shoot and they did before. But for some odd reason everything else workd. Oh and by the way its space to shoot.
Computer too slow? Consider running a VM on your toaster.

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: Put pixel function not working

Post by cameron » December 6th, 2012, 3:52 am

OK I finally found what was wrong. I was only calling update once in the whole game. I should be doing it every frame. Or use a loop. But what I dont understand is why did it work before?
Computer too slow? Consider running a VM on your toaster.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Put pixel function not working

Post by chili » December 9th, 2012, 9:19 am

Hard to say without seeing both the before and after versions.
Chili

Post Reply