2017년 6월 19일 월요일

loop "While" stopped at the click of a button


how to make the loop "While" stopped at the click of a button "btnMove"?

--
see here why using a while loop is probably not a good idea

you might want to elaborate, what you are trying to do
this could help us to suggest a solution...

--
Probably the button click is never recognised because the wile loop never finishes and it does not allow being interrupted.

-- 
Pull a Clock in from the Designer's Sensors drawer.

Move the blocks from your while() loop into the Clock's Timer event block to have them repeat.

-- 
Thanks for the advice, Abraham Gatzler!
my programm is working

-- 

댓글 없음:

댓글 쓰기