grouping a player object with an image
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
grouping a player object with an image
I'm trying to place a player object on top of an image of a TV and group them, but whenever I click group the player enlarges and covers the entire image. I just don't get why. Someone please help me. Thanks.
That works, but...
My ultimate goal is to enlarge the grouped object dynamically when it moves. But it is not enlarging. Here's my code for the grouped object:
local tDragging
on mouseDown
grab me
put true into tDragging
end mouseDown
on mouseUp
put false into tDragging
end mouseUp
on mouseMove
if tDragging is true then
get the height of me
put it into h
get the width of me
put it into w
set the height of me to h + 2
set the width of me to w + 2
end if
end mouseMove
This has worked before for non-grouped objects. Any suggestions?
local tDragging
on mouseDown
grab me
put true into tDragging
end mouseDown
on mouseUp
put false into tDragging
end mouseUp
on mouseMove
if tDragging is true then
get the height of me
put it into h
get the width of me
put it into w
set the height of me to h + 2
set the width of me to w + 2
end if
end mouseMove
This has worked before for non-grouped objects. Any suggestions?