has been resolved, here's the code
thank you all for helping
// Project: 2D particle
// Created: 20-02-21
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "latihan" )
SetWindowSize( 640, 360, 0 )
SetWindowAllowResize( 0 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 640, 360 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
gpup_init()
#include "inc_gpup.agc"
#include "menu.scene"
#include "menu2.scene"
global gamestart as integer
gamestart=0
dust = gpup_loadEffect("dust",0,0,0,5.0)
gpup_emitterActive( dust, 1)
menu_setup()
menu_sync()
SetSpritecategoryBits(menu_sprites[1], 0x1000,0)
repeat
if GetPointerPressed()=1
hitsprite=GetSpriteHitCategory(0x1000, GetPointerX(), GetPointerY())
if hitsprite=menu_sprites[1]
gamestart=1
menu_cleanup()
menu2_setup()
gpup_emitterActive( dust, 0)
gpup_deleteEffect ( dust )
do
menu2_sync()
Sync()
loop
endif
endif
gpup_update()
Render2DFront()
Render2DBack()
Render3D()
Swap()
until gamestart=1