Page 1 of 1
grouping a player object with an image
Posted: Tue May 15, 2007 4:13 am
by revmeup
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.
Posted: Tue May 15, 2007 7:42 am
by Mark
Hi revmeup,
Set the lockloc of the player to true.
Best regards,
Mark
That works, but...
Posted: Wed May 16, 2007 3:03 am
by revmeup
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?