Put pixel function not working
Put pixel function not working
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.
Re: Put pixel function not working
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.
Re: Put pixel function not working
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.
Re: Put pixel function not working
Hard to say without seeing both the before and after versions.
Chili