Ive been making ^ that kind of script like this:
(ive coded it before, but i never saved my progress after i failed, so im just explaining it in english xd)
x = 1
clicked function
if x = 1 then
x = 2
stuff stuff stuff
wait
end
if x = 2 then
x = 1
stuff stuff stuff
wait
end
end
event caller
Thats pretty much what the script is formatted by, and i can clearly tell its inefficient. Lets say x is 1. When i click the brick, x turns to 2 for a split second and does the thing, but then almost immidieately turns back to 1, even though i only clicked it once. Im not that advanced with doing stuff like this yet, or maybe im just missing a critical thing here. wat do?
|