This site requires JavaScript, please enable it in your browser!
Greenfoot back
Nico_ti
Nico_ti wrote ...

2019/3/13

Lightcycles game problem with trail

Nico_ti Nico_ti

2019/3/13

#
I'm making a lightcycles game and my problem is taht I cant find a "Pen down" function in the API. All i could was a function for drawing a straight line, but that function instantly draws a line. I need the line to follow my actor. Do I have to make a seperate "line" actor? Thanks in advance P.S. danpost I'm a huge fan
danpost danpost

2019/3/14

#
I would think a line would be too thin for a lightcycle trail. Better would be to continuously draw small filled-in rectangles. Using an actor would not be advisable because, if you were to add a new one into your world every act step, the number of actors in your world would eventually cause some lagging. You would probably see the effect begin to happen within a few short seconds.
Nico_ti Nico_ti

2019/3/14

#
Alright thanks for the help! But is there a way to edit the thickness of a line?
danpost danpost

2019/3/14

#
Nico_ti wrote...
Alright thanks for the help! But is there a way to edit the thickness of a line?
No. The only changeable pre-set drawing state is the color and there is no line drawing method with a parameter for thickness.
You need to login to post a reply.