Set Screen Background


the path of the background folder is: /home/Desktop/CBOT/DS/backgorund/

here you can create other subfolders, eg:

...... /CBOT/DS/background/myphoto/

So the exact command to recall the image contained in the subfile myphoto is: ds_background myphoto / myimage.jpg

related command :

ds_background (filename.jpg)


Example

# set subroutine function:
ds_backgrond back2.jpg
make_sub myimg
sub myimg photo_now 640x480 myphoto
# set button named but_A
button_xy but_A 10 10
button_dim but_A 150 150
button_img but_A do.png
button_call but_A play_sound
button_run but_A
# subroutine function:
make_sub play_sound
sub play_sound mp3_load test.mp3
end_script
Powered by Sgneep.com