Friday, April 6, 2007

Tutorial #6 - Adding Effects

Sound Effects

load sound "path/filename",SoundID
play sound SoundID
loop sound SoundID
stop sound SoundID

These commands adds sounds in your game. Self explanatory.

2D Banners for HUD or Score Etc.

load image "Path/File",ImgID
paste image ImgID,X,Y

X & Y are 2D Co-Ordinates (1x1 to 640x480)

you can load various images displaying score or health, and paste them at appropriate place at appropriate time.

No comments: