i have managed to generate 3 random shapes but i can only move 1 shape into the hole that i have created when i try to move the other shapes which are generated the same way they dont move and the holes fail to accept them even tho its the same code.
looking around at examples i noticed that cType does something but i cant figure out what
this code came from a lesson on multi touch and allows me to move everything on the screen
Code: Select all
on touchStart pTouchId
# Sent each time a new touch is started
end touchStart
on touchEnd pTouchId
# Sent each time a touch ends
end touchEnd
on touchMove pTouchId, pX, pY
# Sent when any touch moves
set the loc of the target to pX,pY
end touchMove
Code: Select all
on shapeMake
set the loc of the templateButton to tLoc
put any item of "A,B,C" into pLetter
create button ("shape" & pLetter) in group "shape"
end shapeMake
Code: Select all
set the cType of the templateButton to "sheep"
now could i use
Code: Select all
set the cType of the templateButton to "shapeA,shapeB,shapeC"
thanks for taking the time to read this post.