So I bought the visual editor about 3 weeks ago and I have managed to rebuild an old program most of the way using the editor. I really like how easy it is to place and adjust sprites. However, I am having a few issues.
1. The Print() function does not seem to do anything anymore.
2. When editing sprites there seems to be a delay between the "click" and the affect, and things have started to hang up all together
I realize that this could just be my code so here is a snip of what im doing:
spritehit = getspritehit(getpointerx(),getpointery())
if GetPointerPressed() = 1 and GetSpriteHit(GetPointerX(),GetPointerY()) = btn_unpress_spr
SetSpriteVisible(btn_press_spr,1)
SetSpriteVisible(btn_unpress_spr,0)
print("option1")
elseif GetPointerPressed() = 1 and GetSpriteHit(GetPointerX(),GetPointerY()) = btn2_unpress_spr
SetSpriteVisible(btn2_press_spr, 1)
SetSpriteVisible(btn2_unpress_spr, 0)
print("option2")
sync()
elseif GetPointerPressed() = 1 and GetSpriteHit(GetPointerX(),GetPointerY()) = btn3_unpress_spr
SetSpriteVisible(btn3_press_spr, 1)
SetSpriteVisible(btn3_unpress_spr, 0)
print("option3")
endif
VisualEditor_Update ( )
sync()
//For Testing
if getpointerstate() = 1
print("Press held")
endif
//Resets button sprites to show that the button is no longer pressed
if GetPointerReleased() = 1
select spritehit
case btn_unpress_spr
SetSpriteVisible(btn_press_spr,0)
SetSpriteVisible(btn_unpress_spr,1)
endcase
case btn2_unpress_spr
SetSpriteVisible(btn2_press_spr,0)
SetSpriteVisible(btn2_unpress_spr,1)
endcase
case btn3_unpress_spr
SetSpriteVisible(btn3_press_spr,0)
SetSpriteVisible(btn3_unpress_spr,1)
endcase
endselect
endif
// update the screen
VisualEditor_Update ( )
sync ( )