qorf / quorum-language

The primary repository for the Quorum Programming Language
BSD 3-Clause "New" or "Revised" License
12 stars 6 forks source link

BehaviorEvent requires running game for initialization #93

Open alleew opened 10 months ago

alleew commented 10 months ago

The BehaviorEvent class requires a running game to initialize, as seen here in its on create block:

on create GameStateManager manager seconds = manager:GetGameDisplay():GetSecondsBetweenFrames() end

This can cause crashes when using actions like AddBehavior on a Button in a Form. It's maybe not unreasonable for it to crash here, though if it does it could use a better error message. What behavior this ought to have is unclear but the current behavior is probably not it.