igiButton

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

Syntax:

igiButton:Int(label:String)


Parameters

Returns

1 on the frame the button is clicked, otherwise 0.



Summary

A button, sized to its text.

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



Example
If igiButton("Start") Then StartGame()

BambooBasic © 2026 Michael Denathorn