Here is the code im testing for passing info to the loop and it is ignored unless I load directly to each scene. Am I suppose to load in each scene from the loop? as in virtual editor you can use goto buttons for each scene.
VisualEditor_Setup ( VISUAL_EDITOR_LOAD_FOR_SCENE )
// go to the first scene
VisualEditor_SetScene ( 2 )
owl = VisualEditor_GetID ( "sprite 14", 1 )
timesprite = VisualEditor_GetID ( "sprite 41", 2 )
board3 = VisualEditor_GetID ( "sprite 19", 1 )
// our main loop
do
VisualEditor_Update ( )
// Example of how to update and switch between scenes
// First get the current scene
select VisualEditor_GetScene ( )
// sort out scene 1
case 1:
UpdateScene1 ()
endcase
// sort out scene 2
case 2:
UpdateScene2 ()
endcase
case 3:
UpdateScene2 ()
endcase
endselect
sync ( )
loop
function UpdateScene1 ()
owl = VisualEditor_GetID ( "sprite 14", 1 )
owlx=getspritex(owl)
owly=getspritey(owl)
if owlx<120 then SetSpritePosition(owl,120,owly)
if owlx>120 then SetSpritePosition(owl,120,owly)
endfunction
function UpdateScene2 ()
timex=GetSpriteWidth(timesprite)
timey=GetSpriteHeight(timesprite)
if GetPointerReleased()=1
SetSpriteSize(timesprite,timex+scaleme,timey)
scaleme=scaleme-1
endif
endfunction