#Help on moving an entity along with the player

39 messages · Page 1 of 1 (latest)

fading mirage
#

Attach an entity to the player instead, then attach the area to that entity

#

you can probably use the blockbox entity to do it

vast zealot
fading mirage
#

Which entity have you tried?

vast zealot
#

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

vast zealot
#

the problem is that I can attach entities to me, but they don't move together with me

fading mirage
#

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

vast zealot
#

ok, I'll try!

fading mirage
#

make sure these are your attachment settings

vast zealot
# fading mirage

dude, I'm dumb. I was attaching via script, not from the level editor. With this "ParentAttachLocked" on it works, it moves with me

fading mirage
vast zealot
#

but there's still a problem about the rotation

vast zealot
# fading mirage <a:MONKE:1121180530491273267>

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

fading mirage
#

rip

vast zealot
#

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

fading mirage
#

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

vast zealot
fading mirage
#

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

vast zealot