Please enable JavaScript.
Coggle requires JavaScript to display documents.
Basic Game Loop ABA, script in RP Entity File, Only 1 Component can be…
Basic Game Loop ABA
Events
On Entity Spawn
sequence
randomize
add component group
is_boy
add component group
is_girl
make_boy
sequence
remove
component group
is_girl
add
component group
is_boy
make_girl
sequence
remove
component group
is_boy
add
component group
is_girl
Active/add
Component Groups
is_girl
component
skin_id
0
entity sensor
is player closer than 5 blocks
fire event make_boy
Deactive/remove
Component Groups
is_boy
component
skin_id
1
entity sensor
is player further than 5.01 blocks
fire event make_girl
Entity BP File
script in RP Entity File
query.skin_id == 0
play girl animation
show girl skin
show girl geo
query.skin_id == 1
play girl animation
show girl skin
show girl geo
Only 1 Component can be Active/added at a time
Always remove a component group
Before adding replacement
A
B
A
B
B
A
When first Spawned randomly pick A or B