A code for some randomized drawing thing

project

#1

I've had this code on my computer for a long time, so I'm going to share it here.

Technically, this code is basically a draw a sentence type thing.

when the play button is tapped:
set value (other person) to random 1 to 6
set value (person) to random 1 to 8

check once if person = 1
Set text to You

check once if person = 2
Set text to (insert person's name here)

check once if person = 3
Set text to (insert person's name here)

check once if person = 4
Set text to (insert person's name here)

check once if person = 5
Set text to (insert person's name here)

check once if person = 6
Set text to (insert person's name here)

check once if person = 7
Set text to Your BFF

check once if person = 8
Set text to Your crush

when the play button is tapped
Set value Action to random 1 to 9

Check once if Action = 1
Set text to Read

check once if action = 2
Set text to Watch TV

check once if action = 3
Set text to spend time

check once if action = 4
Set text to go to the movies

check once if action = 5
Set text to go fishing

check once if action = 6
Set text to play on the computer

check once if action = 7
Set text to garden

check once if action = 8
Set text to rent movies

check once if action = 9
set text to walk

when the play button is tapped

check once if other person = 1
set text to (insert person's name here)

check once if other person = 2
set text to (insert person's name here)

check once if other person = 3
set text to (insert person's name here)

check once if other person = 4
set text to (insert person's name here)

check once if other person = 5
set text to (insert person's name here)

check once if other person = 6
set text to (insert person's name here)

When iPad is pressed
Leave a trail width 10
Move to my finger


#2

Ooh, interesting! I don't understand what your code is doing completely, though – is it like, ____ with ____ (like go fishing with your BFF)? And you're supposed to draw that on-screen? :o


#3

Yeah, it's just a fun thing to do for drawers!

It's a very simple code, but I suppose it might be of use to some people.


#4

Also, I noticed this; mind if I improve it? :)

When iPad is touched
    Move to my finger
End

When iPad is pressed
Leave a trail(color(hsb(0, 0, 0)) width(10)) {
    Move to my finger
}

Don't forget the "iPad is touched" part - that's the code that moves the trail to your finger before drawing its trail. ^o^


#5

Thanks!


#6

Yeah, my pleasure :)