I have an object type, oFur
, instances of which are generated in a random distribution over the sprite area of a parent object, oFurArea
.
However, I would like the oFurArea
to change its image_xscale
and image_yscale
dynamically, as well as its y
position. This is easy to do, but I would also like all of the oFur
instances to move with their parent (i.e. change their own 'y' values), whilst maintaining their relative positions on the parent object.
Either I'm having a brain-fart, or I cannot work out how to do this. Any help would be appreciated.
oFurArea
byfoo
and then move everyoFur
byfoo
too? \$\endgroup\$foo
? TheoFurArea
changes itsy
every step at aChangeRate
variable. I would like theoFur
to change itsy
position at this same rate whilst maintaining its position relative to theoFurArea
. I realise that I could just duplicate the y-changing code in the Step Event of theoFur
, but a more elegant solution would be to update theoFur
's 'y' variable every step based onoFurArea
'sy
. \$\endgroup\$foo
. en.wikipedia.org/wiki/Foobar \$\endgroup\$oFur.y
andoFurArea.y
. Then on step, makeoFur.y = oFurArea.y + difference;
. \$\endgroup\$