The Daily Click ::. Forums ::. Klik Coding Help ::. lightning beam effect
 

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
27th June, 2005 at 06:27:34 -

How can I make a lightning beam effect in MMF. I want the one edge of the beam to be created from a moving enemy anf the other edge to stop when hitting the player or an obsticle. If it hits the player some events happen - like sub from value A

 
http://www.robocaptain.com

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
27th June, 2005 at 06:56:00 -

Do you mean something like this?
http://www.sitesled.com/members/destroyer/Beam.cca

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

Nuutti



Registered
  26/10/2003
Points
  1364
27th June, 2005 at 06:59:44 -

i just finished an example too . Darn!

anyway http://nuutti.afraid.org/pelit/beam/beam.cca

you'll need 2 modify it tho

Image Edited by the Author.

Image Edited by the Author.

 
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
27th June, 2005 at 07:29:15 -

like yours nutti. But I would need the beam to rotate. And the game seems to exit if I press space many times, very fast.


ah, I see now. I ends the program when you hit it 5 times. but I cant make the beam rotate with the player.

Image Edited by the Author.

 
http://www.robocaptain.com

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
27th June, 2005 at 07:44:00 -

ok I've looked trhoug your example some mor, nutti. Its very good, just as I want it, exept for:
- The beam wont roteate with the player (e.g he cant shoot behind him)
- The beam doesnt stretch the entire screen
- and I am having troubles making two object shoot at the exact same time, I can make them shoot one and one. but I think its easy to fix though.

help please!

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
27th June, 2005 at 08:00:18 -

http://nuutti.afraid.org/pelit/beam/beam.cca

updated
-can rotate
-stretches to the playfield

but if you want many enemies you'll have to modify the code kinda lot. I suggest you to take this as a tutorial and then code one yourself, so it'll be easier for you to understand.

 
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
27th June, 2005 at 08:35:52 -

allright, this is sweet. But it still has some limitations. What I had in mind was that the enemy would shoot at the player, now the enemy has to be able to shoot it at least 32 directions towards player. is there a way to do this without adding 32 additional codes!?

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
27th June, 2005 at 10:57:04 -

sure... i may create an example- -- - wait some time please

done
http://nuutti.afraid.org/pelit/beam/beam.cca
now it has 32 direction system

Image Edited by the Author.

 
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
28th June, 2005 at 08:49:45 -

sweet, thanks man!

 
http://www.robocaptain.com

Nuutti



Registered
  26/10/2003
Points
  1364
28th June, 2005 at 10:06:49 -

np

 
P.S. sorry for my mangled english.
   

Post Reply



 



Advertisement

Worth A Click