shmups.system11.org

Shmups Forum
 
* FAQ    * Search
 * Register  * Login 
It is currently Wed May 22, 2013 6:17 am View unanswered posts
View active topics



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: One of the toughest weapons to code in a shmup...
PostPosted: Mon Mar 28, 2005 6:13 pm 


User avatar

Joined: 01 Feb 2005
Posts: 178
Location: Somewhere in the Midwest.
This has been driving me nuts for ages, and sadly, the only shmup programmer that I've seen pull it off is rather difficult to contact (Alluro).

What weapon am I talking about coding, exactly? Well, it's the infamous Lock-On Laser from Raiden II/Raiden Fighters. Y'know, the purple beam that curves around and such, and locks onto an enemy when it hits them. The logic and physics behind how such a weapon is coded have always been beyond me, I was wondering if anyone might be able to shed some light on the topic.

For the record, GameMaker is my program of choice, so anything from a language like C++ and the like wouldn't be of much help to me.
_________________
YOU ARE APPROACHING THE TARGET OF ATTACK! THE MISSION STARTS NOW! ARE YOU READY?!


Top
 Offline Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 9:10 pm 


User avatar

Joined: 18 Feb 2005
Posts: 38
Location: Newcastle, England
I'm not entirely sure what GameMaker can and can't do so offering advice is a bit tricky.

I know how I'd do it though and that's probably with Hermite splines.

This basically lets you define a start point and end point for your path (laser) and the tangency at those points. The maths can then work out the x,y co-ords of any point along that path where you'd place your laser sprite images.

I could write something in BASIC but I'm not sure that would be any use to you.
_________________
Binary Zoo


Top
 Offline Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 9:32 pm 


User avatar

Joined: 01 Feb 2005
Posts: 178
Location: Somewhere in the Midwest.
Well, there are some similarities in the GameMaker Language (GML for short) and things like Visual Basic. I'm not sure if I could implement your ideas, but if you'd be willing to show them, maybe I could at least learn something from them.

In all honesty though, your idea sounds exactly like what I'd need.
_________________
YOU ARE APPROACHING THE TARGET OF ATTACK! THE MISSION STARTS NOW! ARE YOU READY?!


Top
 Offline Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 11:26 pm 



Joined: 30 Jan 2005
Posts: 33
Bezier Patches.

I have made some Homing Bending lasers for my shmup demo.( check it out. 8) )
There's alots of calculations involve with this effect.
Sides calculating, bezier calcualtions, etc etc.


Top
 Offline Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 11:28 pm 


User avatar

Joined: 01 Feb 2005
Posts: 178
Location: Somewhere in the Midwest.
...Nevermind, found it. >.>;
_________________
YOU ARE APPROACHING THE TARGET OF ATTACK! THE MISSION STARTS NOW! ARE YOU READY?!


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Space Pilot 3K template by Jakob Persson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group