Skip to content

Time Warp Mechanic #42

Answered by Renhoex
The-HandyDandyman asked this question in Q&A
May 25, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

There's several ways to do it, I think the easiest way would to probably have the different time periods be in the scene, have 4 nodes for present, past, future and global (global would be for the player so they wouldn't be affected by time)

in the level initialization script, save the other time periods to a variable and use remove_child and add_child to switch between the periods.
so for example initializing could be
var getPresent = get_node("Present") var getPast = get_node("Past") var getFuture = get_node("Future") func _ready(): remove_child(getPast) remove_child(getFuture)
and you could call a function to change the time preiods something like
remove_child([current time period]) ad…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@The-HandyDandyman
Comment options

@fishingrosd113
Comment options

@DimensionWarped
Comment options

Answer selected by DimensionWarped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants