TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Drawing a line
Pages:
1
Drawing a line
00george
Posts: 161
August 14, 2012, 10:28:24 am
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: 9473
August 14, 2012, 10:31:59 am
Use lists to store the X and Y positions and then draw everything that's in the list.
https://twitter.com/Rob1221dev
GreenGuy
Posts: 101
August 14, 2012, 12:43:15 pm
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: 9473
August 14, 2012, 01:07:04 pm
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).
https://twitter.com/Rob1221dev
GreenGuy
Posts: 101
August 14, 2012, 02:50:45 pm
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
August 15, 2012, 06:05:27 am
Lets say I manage to store all the x and y positions in a list. How do I draw them all?
rob1221
Posts: 9473
August 15, 2012, 08:09:21 am
There's a block to loop through each item in a list.
https://twitter.com/Rob1221dev
Pages:
1