#Camera Movements/Cutscenes?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1744242118:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
im thinking of summoning an item display at the coordinates of the player i want to spectate and then setting every player into spectator and teleproting them to that item display, but how would i make it so that the player goes back to their original coordinates?
ik u can use data get (player name) pos to get the position, but how would i use that in a tp command
Wouldn't using an armor stand be a good choice for this type of effect? You can always make it invisible and indestructible
ok but how do I teleport it to the player i want the cutscene to start at. /tp the players name will just get it stuck inside of them, so i need their coordinates and subtract/ add some values to make it look more natural
You can run the command as the armor stand and have it to @a to it constantly. You can check for the armor stand specifically by summoning it in with a tag that you can target then have an execute command /execute as @e[type=armor_stand,tag=cutscene] run tp @a[tag=in_cutscene] ~ ~ ~ or something to this effect
And you can move the armor stand where ever. I'm not too sure how well this works, but it's a start at the least.
It wouldn't, armor stands are outdated and everything they can, display entities can do better and more efficient
I'm at work, so I can't explain but all of this can be done fairly easy and efficient.
I got this one
So you want to summon a marker(better armor stand) and teleport players to where you want them facing the player
for example summon marker ~ ~ ~ {Tags:["pos"]}
and execute at @n[type=marker,tag=pos] run tp @a[tag=cutscene] ~ ~ ~ facing entity @p[tag=selectedPlayer]
This will teleport all players with the tag cutscene to the marker with the 'pos' tag and make them face the selcted player tag
alright but after the cutscene finishes is there a way to teleport all the players back to their original position?
i don't know how to store the values of their original position and teleporting them bac
rudimentary way to do this if they are all coming from a specific spot then just tp them back to that spot. though if you want it to be more dynamic so its less jarring then this is not the way to do that...
Display entities also have the teleport_duration which allows you to smoothly interpolate between 2 positions and creates some real nice cutscenes
You can also give the player an overlay with those black bars on the top and bottom to make clear that there is a cutscene happening
this is my curretn command and i have a command in tick which teleports all players in spectator to spectate the camera
execute as @s run summon item_display ~ ~ ~ {view_range:0f,teleport_duration:TIME,Tags:["camera"],item:{id:"minecraft:air",Count:1b},Rotation:[RY1f,RX2f]}
gamemode spectator @a
spectate @e[type=minecraft:item_display,tag=camera,limit=1] @p
tp @e[tag=camera] @s
tick function:
execute as @a[gamemode=spectator] at @s run spectate @e[type=item_display,tag=camera,sort=nearest,limit=1]
the tp @e[tag=camera] @s is supposed to teleport the camera to the player i want to make the cutscene for
can some1 hel
Sorry give me a sec
how do i teleport the player back to their original position after the cutscene
Im not sure how TheBlackSwitch saw it but summon an marker at the locations and teleporting them back
you can assign each player a marker if you want diffrent spots
or wait for the black switch
so how would i teleport each seperate player to a different one. Like i would execute as each player, but owuldn't all the markers have the same name so how would i tell them apart
You will need macros for this but try like this in load.mcfunction
[35mscoreboard [34mobjectives add players [0mdummy
And this in the tick
[35mscoreboard [34mplayers add [36m#player [34mplayers [32m1
[35mexecute [34mstore result storage [0m<storage name> playerID [34mrun [35mscoreboard [34mplayers get [36m#player [34mplayers
[35mfunction [33m<namespace>:<function [0mname> [34mwith [0m<storage name> [35mrandom
And in function ```ansi
[37m$[35mexecute [34mat [36m@p[33m[[37mtag[34m=[32m!done[33m] [34mrun [35mtag [36m@p [34madd $[33m([0mplayerID[33m)
[37m$[35mexecute [34mat [36m@p[33m[[37mtag[34m=$[35m([0mplayerID[35m)[33m] [34mrun [35msummon [0mmarker [32m~ ~ ~ [33m{[37mTags[34m:[35m[[34m$([0mplayerID[34m)[35m][33m}
[37m$[35mtag [36m@p[33m[[37mtag[34m=$[35m([0mplayerID[35m) [37madd done
lmk if you need more help @hollow canopy
and specify in the funtion tag=!done,tag=cutscene
lmk if you have anyproblems
and to teleport back you just have to tp instead of summon