10000 FrayCombatStateMachine.buffer_sequence not working as intended · Issue #51 · Pyxus/fray · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
FrayCombatStateMachine.buffer_sequence not working as intended #51
Open
@20milliliter

Description

@20milliliter

Given the following FrayRootState:

var standing_state = FrayRootState.builder()\
	.transition_sequence("idle", "punch", {sequence="punch"})\
	.transition_sequence("idle", "kick", {sequence="kick"})\
	.start_at("idle")\
	#idle is returned to via a goto_start_state() call within AnimationPlayer animations
	.build()
	combat_state_machine.add_situation("standing_state", standing_state)

and the following print out of events:

Buffered punch into state_machine
Transitioned from idle to punch 
Buffered kick into state_machine
Transitioned from punch to idle

Intended behavior would be for a transition from idle to kick to occur thereafter, correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0