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 / I need help creating a top down shooter. i can aim but cannot shoot

Author
Message
caloloslim
2
Years of Service
User Offline
Joined: 27th Nov 2021
Location:
Posted: 30th Nov 2021 00:19 Edited at: 30th Nov 2021 00:37
I have recently started a top down shooter project and i am able to make the player face the mouse position and move around the screen. I don't know how to make the shooting projectiles towards the mouse possible. I also have a hard time understanding types used with arrays. any suggestions would be helpfull.

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Nov 2021 00:44 Edited at: 30th Nov 2021 02:09
1) please use code tags; i've wrapped the code above for you. usage:

[code lang=agk]
...your code here...
[
/code]

2) re: shooting toward mouse, see HERE; search is your friend.

3) re: typed arrays, see HERE; help docs are your friends, too.

4) re: creating a top-down shooter, see this Bullet Hell Template; you have LOTS of friends. you just haven't met them all yet
caloloslim
2
Years of Service
User Offline
Joined: 27th Nov 2021
Location:
Posted: 30th Nov 2021 21:22
Thanks a lot. really appreciate it

Login to post a reply

Server time is: 2024-04-24 22:02:32
Your offset time is: 2024-04-24 22:02:32