Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Shooting projectiles in random directions

Author
Message
Bluepixel
5
Years of Service
User Offline
Joined: 8th Apr 2019
Location:
Posted: 12th May 2019 14:31
Hi there, im working on a game now and I have a total of 30 bullets I want to fire from the middle of the screen, into a random direction. can anyone help me do this?
Amon
9
Years of Service
User Offline
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 12th May 2019 15:36 Edited at: 12th May 2019 16:43
Hi! This does what you need, i hope.



This version deletes the particles that go offscreen.




Win 10 Pro - AMD RYZEN 7 Octacore 3.8ghz - 32GB DDR4 - RTX 2070 8GB

Attachments

Login to view attachments
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 12th May 2019 20:24 Edited at: 12th May 2019 20:29
There was a discussion about this some time ago

Here's the link ( scroll down to my post )
https://forum.thegamecreators.com/thread/218473


Should be just what you need


PSY LABS Games
Coders don't die, they just gosub without return

Login to post a reply

Server time is: 2024-04-26 16:18:01
Your offset time is: 2024-04-26 16:18:01