The Daily Click ::. Forums ::. Klik Coding Help ::. drawing poligon
 

Post Reply  Post Oekaki 
 

Posted By Message

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
28th September, 2008 at 11:52:47 -

hey.

i have some points, exactly 17, and i want to draw a polygon using these points AT runtime. I used overlay redux, but that's terribly slow after adding mor then 5 or 6 points.
any other great way to do this? ;>

i tried draw object too, but that does not have semi-transparent ink effect. :\

thanks for your help
Borgi

Image Edited by the Author.

 
:C

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
28th September, 2008 at 18:50:36 -

isn't there any object which can make "Draw" object semi-transparent? ;>

 
:C

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
29th September, 2008 at 01:32:33 -

If you're using MMF2, then perhaps you could use actives which are scaled and rotated for lines instead of an extension. This way you could use semi-transparent effects as well.

 
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

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
29th September, 2008 at 01:49:26 -

I can run overlay at about 300 polygons per frame before it slows down, its just the loops you are running that use up the speed.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
29th September, 2008 at 02:35:17 -

I agree, I made a polygon drawer that was running 100's of points and still at full fps, you must have something wrong?

 
Image
http://bfollington.tumblr.com

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
29th September, 2008 at 02:45:33 -

its the fast loop slowdown most likely. I'm going to write an article soon

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
29th September, 2008 at 07:36:29 -

I was gonna say, the overlay object is pretty fast. If you're using fastloops read Pixelthief's article for tips.

 
n/a

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
29th September, 2008 at 20:16:24 -

okay, thanks for your reply. now jsut tell me how to make overlay redux work not on layer 1 :$

it jsut simply dissapears when i move it to layer 4 or 5

 
:C

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
2nd October, 2008 at 16:33:17 -

no1 got any idea? i tried active overlay but that does not work neither :C

 
:C

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
2nd October, 2008 at 16:56:23 -

Theres a bug in the overlay object, you need to position the object anywhere except for 0,0 in your frame

You can just set it to 1,1 and then have an event:
Start of Frame -> Set Pos to 0,0

 
n/a
   

Post Reply



 



Advertisement

Worth A Click