Star Rating
A rating system indicated by stars using the shape painter.
Authors and contributors to this experimental extension: Entropy.
Warning
This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.
A behavior to turn a shape painter into a rating system indicated by stars.
Tip
Learn how to install new extensions by following a step-by-step guide.
Star Rating
A rating system indicated by stars using the shape painter.
Behavior properties
- Empty Star Fill Color (🔤 String). Default value is
155;155;155. - Empty Star Outline Color (🔤 String). Default value is
155;155;155. - Star Fill Color (🔤 String). Default value is
248;231;28. - Star Outline Color (🔤 String). Default value is
248;231;28. - Number of Points on Star (🔢 Number). Default value is
5. - Star Rotation (🔢 Number). Default value is
0. - Size (🔢 Number). Default value is
32. - Spacing (🔢 Number). Default value is
6. - Stars (🔢 Number). Default value is
3. - Total Stars (🔢 Number). Default value is
5.
See internal technical details
- Empty Star Fill Color is stored as
EmptyStarFillColor(String). Default value is155;155;155. - Empty Star Outline Color is stored as
EmptyStarOutlineColor(String). Default value is155;155;155. - Star Fill Color is stored as
StarFillColor(String). Default value is248;231;28. - Star Outline Color is stored as
StarOutlineColor(String). Default value is248;231;28. - Number of Points on Star is stored as
StarPoints(Number). Default value is5. - Star Rotation is stored as
StarRotation(Number). Default value is0. - Size is stored as
StarSize(Number). Default value is32. - Spacing is stored as
StarSpacing(Number). Default value is6. - Stars is stored as
StarsValue(Number). Default value is3. - Total Stars is stored as
TotalStars(Number). Default value is5.
Behavior actions
Set the rating
Sets the rating to a new value.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): New rating
Technical note: parameter 3 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
StarRating::StarRating::SetRating.
Set total star count
Sets a new total stars count.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Total star count
Technical note: parameter 3 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
StarRating::StarRating::SetTotalStarCount.
Behavior expressions
| Expression | Description | |
|---|---|---|
Object.StarRating::Rating() |
Gets the current rating. | |
Object.StarRating::TotalStars() |
Get the total amount of stars. |
This page is an auto-generated reference page about the Star Rating extension for GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone. Learn more about all GDevelop extensions here.