igiImageButton

Category: IGI (in-game GUI) — Text and buttons

Syntax:

igiImageButton:Int(id:String, image:Int, w:Int, h:Int)


Parameters

Returns

1 on the frame it's clicked, otherwise 0.



Summary

A button showing a b2d image.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
If igiImageButton("bomb", bombImage, 48, 48) Then UseBomb()

BambooBasic © 2026 Michael Denathorn