I need 360 shooting with mouse aim for my next game, dont bother posting here and try to learn me how or explain how to do so. If you want to help me do so by giving me an example file containing this:
The example must have
- 360 shooting code with mouse aim, a speed faster then 100 speed and without 100% accuracy shoot from player
- 360 shooting code with speed faster then 100 speed and without 100% accuracy shoot from multiple enemies
If you are good enough then this would be appreciated:
- Beam/lazer instat hit fire from player/multiple enemies
- ricochet sparks better then what I've coded
If you help me out here you will be joining some very fancy project togheter with, Phizzy, a mod composer, 3D modeller, 2 voice actors and me doing the rest. Its a top view game with a well written script that is almoust finished. I've done some physic code allredy with 360 shooting from player and a lousy ricochet.
try it here: http://www.mb.scorpione.co.uk/sbc4.exe
allready have 2 voice actors, I dont think I'll need any one else, but I can come back to you. Now I really really need a 360 shooting code! I wont abandon the project and I promise a qualety game!
I just dunno how, thats the problem. Ive tried to use the same code, but when multiple enemies shoot - wierd things happen, hard to explain. So I really need someone to help me out.
Yeah i had this problem too. The solution i found was to spread a value in the enemies, start a fast loop the number of enemies times, then on the loop AND if the alterble value = Loopindex("shoot") i created the bullet at the enemy, and set one of the bullets alterble values to the angle between the enemy and the player.
The bullets does move in 360 directions. To change the speed simply change multiplied by 15 to something like multiplied by 25, of course that would make it hard to detect collisions with the bullets, but you can always use the move safely 2 object.
Im pretty sure its not in 360 direction, when I remove all enemies but one and put him in the top left corner and then move the player to the buttom right corner - I can see that the bullets does not hit the player, if this would have been a 360 it would hit the player. You can see this even better if you remove the random shoot.
This might work for me anyway, becouse I allready have a perfect mouse aim shoot, 360 bullet from the player, its hard to really see if the enemy shoots in 360 directions. And this example the speed is faster then 100.
Though, if this is just some glitch you made in the code it would be cool if you fixed it!
My mistake, the bullets are in 360, the problem is i directly positioned the bullets, instead of storing the coordinates in decimals. the improved version is here
http://n.1asphost.com/destroyer84/360[1].cca
Im trying to deal with 360 degree bullets for the first time and I dont seem to be grasping it correctly. I understand using cos and sin in moving the object (its x and y vectors for its speed) but I dont know how to control the angle it shoots out at...
I've been trying to make a small little practice app where theres an object in the middle of the screen that shoots out the bullets, and you press left and right to adjust the angle, and up and down to adjust the speed. I really dont know whats going on, the lower the speed of the bullet, the more it goes crazy. I'll only get like 5 directions, then by increasing the speed I get more.... but I want to move the bullet slowly...
I've looked at every 360 degree bullet application I could find, and I cant figure it out. =/
Maybe I'm close but I'm too stupid to figure it out o_o
(I just figured theres no point in making a new thread about this...)
Alright forget that. I guess if I just use the angle calculator I can do exactly what I wanted to... =X