You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently developing a game wherein Raylib's event recording/playing features would be very helpful for creating an arcade-style attract mode and saving replays of successful runs.
Start/Stop Recording via function call
Currently it is only possible to it ExportAutomationEvents/PlayAutomationEvents with F11/F9, adding something like BeginEventRecording(char *fileName), StopEventRecording and PlayEventRecording(char *fileName).
Specifying I/O File
Passing a fileName parameter to BeginEventRecording and PlayEventRecording could be used as an alternative to the hard-coded eventsrec.rep
Toggleable DrawText calls while recording/playing events
Currently when recording or playing an event file, DrawText is called. I think that if this exposed this should be toggleable with either a boolean passed to BeginEventRecording/PlayEventRecording or via a compile-time define.
Concerns
I understand that this is currently an experimental feature in Raylib, and that there is a TODO to determine how PlayAutomationEvents should interact with PollInputEvents. If this feature is rejected on these grounds I understand and will maintain my own branch. Otherwise I'd be happy to implement the feature described above.
The text was updated successfully, but these errors were encountered:
@MatthewOwens Thanks for your feedback! I had almost forgoten about the Event Recording System, it's still in experimental state and it has not been reviewed in several years. I will give it a review after raylib 4.5 release!
Feature Request Summary
I'm currently developing a game wherein Raylib's event recording/playing features would be very helpful for creating an arcade-style attract mode and saving replays of successful runs.
Start/Stop Recording via function call
Currently it is only possible to it
ExportAutomationEvents
/PlayAutomationEvents
with F11/F9, adding something likeBeginEventRecording(char *fileName)
,StopEventRecording
andPlayEventRecording(char *fileName)
.Specifying I/O File
Passing a
fileName
parameter toBeginEventRecording
andPlayEventRecording
could be used as an alternative to the hard-coded eventsrec.repToggleable DrawText calls while recording/playing events
Currently when recording or playing an event file,
DrawText
is called. I think that if this exposed this should be toggleable with either a boolean passed toBeginEventRecording
/PlayEventRecording
or via a compile-time define.Concerns
I understand that this is currently an experimental feature in Raylib, and that there is a TODO to determine how
PlayAutomationEvents
should interact withPollInputEvents
. If this feature is rejected on these grounds I understand and will maintain my own branch. Otherwise I'd be happy to implement the feature described above.The text was updated successfully, but these errors were encountered: