Home Artists Posts Import Register
The Offical Matrix Groupchat is online! >>CLICK HERE<<

Content

A huge thankyou to all my patrons both new and old. Make sure you are all taking time to look after yourselves!

So while I'm getting content in I've started work on a new game element. This isn't anything unplanned but it is a tricky one.

Carrying the player.

So currently the player can follow another character. This is just the code telling both characters to walk to a point. But I want one character to be able to pick up or push/pull another. Actually linking characters movement together is much more complex.

Firstly the motion has to be exact. This means that the two objects need to be temporarily joined together. They also need to link animations so the movement information of the parent can be transferred to the child.

I also need this to work for both characters and vehicles (Like a stroller for instance). I'm really glad I waited untill I re-structured the movement code before approaching this problem.

I have a prototype working but there are more complex elements than I expected. However, I hope by next week I'll have a nice visual to show people of this working.

After I have one character carrying another I think I have a good way to turn that into pushing them in a pram or stroller.

Comments

Anonymous

Lol in this case parent and child seems less than just a programming term. For once aptly named. Would be neat to be drug away for a punishment. Like being pulled by the ear or pulled by the wrist .

The Slavin

I have an idea. For cars you can have the character model always seated in a car, just with no texture and once a character interacts, the vehicle searches for the texture id and display in the vehicle. Not to mention with carrying it could be a similar solution but with the animation going through and replacing the models overall once specific actions are caused they change. It might make it easier than connecting 2 entities. Example; NPC- 1:action- pickup NPC- 2. Play 'Pick Up' animation then render 'Carrying'. Display texture NPC- 1, NPC- 2. I hope someone understood this.

ABDLCheeks

Yeah that's why I want to make sure the animations sync. Obviously doesn't matter if your being pushed in like a pram. But in theory I'd love you to be pulled along!

ABDLCheeks

Ah interesting. So using a dummy as the carried object. I could transform the dummy to look exactly like the player at the point of swap. Then carry the dummy switching back when it is done. That could work. It's worth an experiment. I could see that working for prams/vehicles. Get a better fit. My current system is working but that might be a solution for some future problems!

Anonymous

Bold of you, I like it!