Wednesday, 7 October 2015
Day 19: Shotgun
Today as sort of mentioned in the title, I made the shotgun have a spread effect with the bullets that it shoots. All I did was make it create more instances of the bullets, and add a random_range in which the bullets will spread. Basically it creates 5 instances of obj_Bullet, where direction=somefiringvariable, and that variable is point_direction(x,y,mouse_x,mouse_y)+random_range(-15,15). (Or something along those lines) I worked on getting some collision code working as well thanks to Stephen. Not too much new information is really available other than that. Everyone is working together to make sure that the game looks good. Tomorrow I may play with the shotgun a bit, just to make sure it works right. I may also work out the spawning of zombies, which could be really cool if it works.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment