Search found 3 matches

by erawein
Wed Aug 10, 2016 6:19 pm
Forum: Support and Development
Topic: Multiple shapes on screen
Replies: 2
Views: 1752

Multiple shapes on screen

For example multiple rectangles on screen, varying in sizes and positions.
I don't really know where to start.
I don't know if there's a way to draw more than one shape on screen rather than writing code for each one, is there an easier way to do this?
by erawein
Wed Aug 10, 2016 6:00 pm
Forum: Support and Development
Topic: How to make rectangle move from side to side
Replies: 3
Views: 2849

Re: How to make rectangle move from side to side

Thank you to both, all the ways mentioned were really informative and got the job done. I'm a beginner so I really can't picture it in an abstract way but now I see :)
by erawein
Wed Aug 10, 2016 3:24 pm
Forum: Support and Development
Topic: How to make rectangle move from side to side
Replies: 3
Views: 2849

How to make rectangle move from side to side

It's as simple as it sounds to most of you. I guess I don't get the logic? if x < width then x = x + 1 elseif x > width then x = x - 1 obviously the above is wrong, but I hope you know why I'm stuck from it How can I tell the program to change the direction of the rectangle when it reaches the most ...