The Daily Click ::. Forums ::. Klik Coding Help ::. Drawline extension problems....
 

Post Reply  Post Oekaki 
 

Posted By Message

ChuckyT



Registered
  04/12/2004
Points
  21
18th December, 2004 at 06:35:39 -

I'm using the drawline extension to make a laser sight for my gun. However, once the laser is activated (and then deactivated) a horizontal line is pasted into the backround.... any ideas how to solve this?

And also... any ideas on how to make the line stop when it hits an obstacle backdrop?

Even an explanation of the various drawline events would be helpful... or at least where to find some help.

Thanks.

 
Bop it up, Rock it out!

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
18th December, 2004 at 06:54:21 -

the drawline extension is horribly buggy. allst i have to say

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
18th December, 2004 at 07:35:51 -

About the pasting into the background - that could be due to it being buggy
If you want the beam to stop when it hits an obstactle, you could send a small object in the direction of the gun with fastloop and make it stop at an obstacle, then make the line drawn from the player to the object

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
18th December, 2004 at 10:15:52 -

'Drawline onject' and 'problems' are synonymous.

 
Image

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th December, 2004 at 20:17:22 -

In fact:
Drawline Extension

Is an oxymoron.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ChuckyT



Registered
  04/12/2004
Points
  21
18th December, 2004 at 21:19:55 -

Well, that's no good. Any ideas how to NOT use the drawline ext to make a laser sight? I could just set the "laser" to always be at a specific spot and be invisible, then when you push a key it becomes visible, but I want it to be able to stop when it hits a backdrop, enemy, etc.

 
Bop it up, Rock it out!

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
18th December, 2004 at 23:13:14 -

You could shoot a bunch of active objects and have them be destroyed when they collide with a backdrop.

 
http://www.klik-me.com

醤油の兵士

Almost Human

Registered
  12/06/2002
Points
  173

VIP Member
19th December, 2004 at 04:04:43 -

maybe you could use the drawline objects "refresh screen" action, it might slow down the game, or it might not, it's worth a try though.

 
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.

ChuckyT



Registered
  04/12/2004
Points
  21
19th December, 2004 at 06:15:24 -

refresh screen action? where might that be? I'm using TGF, if that makes a difference



 
Bop it up, Rock it out!

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
19th December, 2004 at 12:22:22 -

Cellosoft's Fastloop object has a redraw screen action which can clean away glitches, but this can half your FPS, you're giving MMF twice as much work to do!
At worst you should only redraw the screen ONCE when a glitch has occurred.

 
- Tigerworks

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
20th December, 2004 at 00:49:35 -

A real laser sight isn't visible for its entire path, so you could just use a 360-degree instant-hit bullet example and just make it so that until it hits the backdrop, the laser sight is invisible. If you wanted to conserve precious processing time, you could set it so that the laser sight is only fired whenever the player's aim is altered, and it is temporarily "pasted" onto the backdrop it collides with. Very tricky, but you might be able to do it.

 
If wishes were fishes then we'd all smell like ladies' underwear.

Jack Galilee



Registered
  02/12/2002
Points
  990

VIP Member
20th December, 2004 at 01:00:46 -

use, Alpha Channel, or the Active Picture object, or any kind of resiable object

 
The only thing better than winning gold in the paralympics is not being retarted
   

Post Reply



 



Advertisement

Worth A Click