#Help on moving an entity along with the player
39 messages · Page 1 of 1 (latest)
but the entity doesn't move with me, it just stays there (At least the last time I tried) I'm going to try again. thanks!!
Which entity have you tried?
I think it was with a random ball, lmao. I was trying to attach the trigger to me but it didn't work too, it wouldn't move on the map
let me try with this blockbox
nah, it doesn't move either
the problem is that I can attach entities to me, but they don't move together with me
FG did exactly that so it should work
one moment
Ok you might need to create a custom block box
open it in the model editor, select the physics body and select "can attach character"
save it as a new entity
in your mod folder of course
ok, I'll try!
dude, I'm dumb. I was attaching via script, not from the level editor. With this "ParentAttachLocked" on it works, it moves with me

but there's still a problem about the rotation
I was thinking of creating an area in some random location on the map.
When I passed a specific trigger, that area would teleport to my position, but +50 x position (I don't speak english very well, it's a little difficult to explain these things heh)
So, with the area teleported to that location, I would automatically go to it with a "player_placeatentity".
I know how to send the area to me, but I don't know how to make it go +some position chords
jesus, it's really hard to explain this
and besides that, the rotation never aligns
I think I'll give up, that's too advanced for me
rip
lmao, cuz my main idea was to do something like this:
https://www.youtube.com/watch?v=fRLQu4V7WSg
But there's this annoying glitch that the camera makes when the teleportation happens (0:12), because the game can't know where you are inside the room to teleport you to the exact same coord in the other identical room that I made on another part of the map.
My solution was to create an area that was always at the same coordinates as me, but in the other room, so that when I teleported there, I would be in the same position and camera rotation.
but it's too hard, damn
I remember someone doing a non euclidian illuision in TDD and it looked pretty decent
I think he also used teleporations
I think your best shot to do it smoothly without complicating things is to make the transition occour in extremely narrow spaces so the player won't be able to move much
Yes, that was my last resort, but I guess it's better not to do it then, cuz I wanted it to always be a surprise. If every time it's in a narrow spot, the player would start to notice and expect it to happen.
That's true
Another way to do it is to take control away from the player when it happens
but again it will be noticeable over time
Also rotating the entity according to the camera shouldn't be too difficult
I could try to help with it later
yeah, I'll try to find more info about this stuff and try more later. thanks for the help!!