Answered
Mouse-hold button
Hey guys,
This is such a stupid question to be asking but it's one I've not come across in a while and I'm danged if I can remember how to do it - I basically have a scrollable map I've been building, but the scroll buttons need to be clicked over and over to move around the map - how can I go about having the following iterate indefinitely until the mouse is relased?:
on(release) {
_level0.map._x = _level0.map._x + 20;
}
I know it'll be an onpress do while etc etc - but I don't know the most efficient way of tackling it! Any ideas?
Thanks,
Graham
This is such a stupid question to be asking but it's one I've not come across in a while and I'm danged if I can remember how to do it - I basically have a scrollable map I've been building, but the scroll buttons need to be clicked over and over to move around the map - how can I go about having the following iterate indefinitely until the mouse is relased?:
on(release) {
_level0.map._x = _level0.map._x + 20;
}
I know it'll be an onpress do while etc etc - but I don't know the most efficient way of tackling it! Any ideas?
Thanks,
Graham
