The Daily Click ::. Forums ::. Klik Coding Help ::. 360 shooting top view
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
16th May, 2005 at 10:54:32 -

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

 
http://www.robocaptain.com

guri-n ha



Registered
  16/04/2005
Points
  245
16th May, 2005 at 15:47:34 -

i can be a voice actor

 
n/a

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
16th May, 2005 at 18:31:41 -

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!

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
17th May, 2005 at 09:39:03 -

Don't you already have one?

quote
"try it here: http://www.mb.scorpione.co.uk/sbc4.exe"
??

 
P.S. sorry for my mangled english.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
17th May, 2005 at 12:49:29 -

Thats only 360 shooting from the player. I cant make a new one that is fiered from the enemies. I need enemies with guns.

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
18th May, 2005 at 10:25:39 -

I don't think it's that harder.. try yourself, what's the problem with it?

 
P.S. sorry for my mangled english.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
18th May, 2005 at 14:03:46 -

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.

Image Edited by the Author.

 
http://www.robocaptain.com

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
18th May, 2005 at 14:31:30 -

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.

Image Edited by the Author.

 
Visit www.crobasoft.com or you're a Noob.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
18th May, 2005 at 15:14:15 -

can you give me an example, mate?

 
http://www.robocaptain.com

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
18th May, 2005 at 16:16:08 -

http://n.1asphost.com/destroyer84/360.cca

 
Visit www.crobasoft.com or you're a Noob.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
19th May, 2005 at 09:47:16 -

cheers, but the bullets doesnt move in 360 directions - it has 32, and the bullets has low speed.

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
19th May, 2005 at 10:32:31 -

Sure you can edit the code always.

 
P.S. sorry for my mangled english.

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
19th May, 2005 at 13:03:36 -

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.

 
Visit www.crobasoft.com or you're a Noob.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
19th May, 2005 at 14:20:55 -

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!

 
http://www.robocaptain.com

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
19th May, 2005 at 14:47:04 -

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

 
Visit www.crobasoft.com or you're a Noob.

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
19th May, 2005 at 15:01:23 -

Thanks mate! this is excellent, you're a life saver! creds to you!

 
http://www.robocaptain.com

»xerus



Registered
  28/06/2002
Points
  675

You've Been Circy'd!Game of the Week Winner
20th May, 2005 at 04:10:05 -

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

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click