Drawing a line

00george

  • Posts: 161
Hi I have been playing around with stencyl trying to make some random generation using lines which has been sort of successful apart from that it only draws one line and I want it to draw a NEW line every pixel BUT keep the old one aswell. Instead of having a single line moving across the screen. You can play it here http://www.stencyl.com/game/play/14131 .

rob1221

  • *
  • Posts: 9430
Use lists to store the X and Y positions and then draw everything that's in the list.

GreenGuy

  • Posts: 101
on a related subject, how do you draw something other then text from a list?
________________,.-*'Renewal'*-.,________________
http://community.stencyl.com/index.php/topic,10615.0.html
------------------------'*-.,Renewal,.-*'------------------------

rob1221

  • *
  • Posts: 9430
Well he's drawing lines, so that's different than text.  You can also draw pixels, polygons, and actor images (actors can be stored in lists).

GreenGuy

  • Posts: 101
yeah i can do that but i still can't seem to get it to draw the actors at a specified location
________________,.-*'Renewal'*-.,________________
http://community.stencyl.com/index.php/topic,10615.0.html
------------------------'*-.,Renewal,.-*'------------------------

00george

  • Posts: 161
Lets say I manage to store all the x and y positions in a list. How do I draw them all?

rob1221

  • *
  • Posts: 9430
There's a block to loop through each item in a list.