here is a movie that i put together that has a lot of controls that i’m thinking about using. how do i add limits to them?
also … does anyone know how to change the color with a button press … or maybe apply a random color to the object?
thx
here is a movie that i put together that has a lot of controls that i’m thinking about using. how do i add limits to them?
also … does anyone know how to change the color with a button press … or maybe apply a random color to the object?
thx
Man you’re wasting space…
on (press, keyPress "<Right>") {
tellTarget ("") {
with (blue) {
_x += 10;
}
}
}
How about
on (press, keyPress "<Right>") {
blue._x += 10;
}
And if you want to put a limit:
on (press, keyPress "<Right>") {
if (_x<400) blue._x += 10;
}
pom :asian:
you’re a genius
thx for helping a newbie scripter out!
[update]
i tried inserting the code and it doesnt work. the ball still moves with the shorter code … so thats sweet but it doesnt stop at the bounds i’ve set
do i need to put an {else} in there?
Oups!
on (press, keyPress "") {
if (blue._x<400) blue._x += 10;
}
Sorry
pom :asian:
it works!
thank you
:: Copyright KIRUPA 2024 //--