Record/tutorial Ghost for cutscenes [GameMaker | Advanced]
This advanced video tutorial shows you how to use create a shadow/replay functionality in GameMaker.
The idea here is to play once and record the input values in that time frame. That means that you create a clone of the player where the input is coming from a record. For that we need the startpoint (x,y) of the recording as well as each frame the input. These we replay/use in the player clone.
That's it!
Tldr: Yes
Character used in game play and thumbnail by DanVelasquezArt CC3by:
https://dan-velasquez-art.itch.io/dvas-characters-thicc-n-juicy
Video on saving with .ini (text) files:
https://youtu.be/r6N_mAmpT7s
// link to the project file on my discord for free use:
https://discord.com/channels/582918792145928202/1205513075273502740
👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie
Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)
----------------------------------------------------------------------------------------
0:00 What we will do
1:51 Subscribe
2:01 Setup, a fully functional player object
2:40 Copy the entire player object
2:52 Recolor him and add an index variable that is used replaying
4:35 Record the x,y value of the start point
4:55 Create array of the values to be recorded
5:10 Have an index that adds up and is the time spend recording
5:30 Have a variable that togges recording off/on
5:47 Fill the arrays with values in the step event
6:30 Increase the index which is the time spend recoding (for each step)
6:38 Block/enable recording
7:10 Recolor the recorder object to see if we do record
7:40 Replace the player input with the recorded values
8:30 Advance the recorded values by increasing the index
9:12 Limit the index to actual array length
10:15 Record functionality: Record
11:40 Record functionality: Stop recording
12:05 Record functionality: Create recorded shadow/clone
13:00 Storing/copying from recorded data into an .ini file