Skip to reading
GDScript Programming & Godot

CarouselPrevious()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Carousel: Previous Image

Move a carousel to its previous image.

Source table from CarouselPrevious(), page 185
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Carousel elementIdChoose an element inside the selected GUI.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CarouselPrevious({"guiId": "hud", "elementId": "topline"})

In use. Wire a left-arrow button to the chosen carousel. Wrapping, animation and layout remain properties of that carousel.

CarouselNext()#

Carousel: Next Image

Move a carousel to its next image.

Source table from CarouselPrevious(), page 185
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Carousel elementIdChoose an element inside the selected GUI.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CarouselNext({"guiId": "hud", "elementId": "topline"})

In use. Wire a right-arrow button to the chosen carousel. This navigates the widget, rather than advancing dialogue or changing scenes.

Page 185 of 378Permalink
Go to page