Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

also change the angle of the camera object using mouse pointer lock

(2 edits)

hey there! can you tell me how to prevent the player from shaking when we hit a box or wall and how to make walls?

and i have setup camera but how to setup controls with it?

(1 edit) (+2)

Previously in my game i had the player as a platformer character with everything set to 0 and everything he collided with was a platform, this made the player shake when going diagonally into an object. A better ad much easier solution (which i am using now) is to just have an event like this 


In which "Platforms" is a group of all the objects you want your player to collide with

For the controls use the mouse pointer lock extension and have some events like this 

In which the variable sensitivity is set to the sensitivity of the mouse

Then you are going to move the player according to it's angle like this


Let me know if you want help with anything else or didn't understand something

I did the same but it doesn't work.

What didn't work?

Sorry. My bad. I really could have written not only that it doesn't work. So if i do what you write, the mouse moving not working. But when i delete the TimeDelta*variable..... then is works but the character just rotate to side.

I turned off the Link Angle but now the camera lagging and shaking.

Make sure to check the video i made. It is just above the comments.It should help with any problem

Hey abdullah first thing first i really thank you for giving me your precious time i want to know some other thing to make the 3d move like head the angle of player is disabled so i can not use the Player.angle command what should i do?

also plz share the whole event sheet jus paste it here

(+1)

I made a separate scene because the other one has some other stuff that are not very useful. I'll show you everything i have done and it seems to work

All the events :

Player behaviour :

All objects :

The floor is just to see where you are going

Floor behaviour

And this is the game :

https://liluo.io/instant-builds/28a6092d-d702-4f82-b6ce-7cd9d0be9d95

I hope this helps

Deleted 1 year ago
Deleted 1 year ago
Deleted 1 year ago
Deleted 1 year ago
(1 edit)

Ok! I figured all of it out thank you so much man you helped me alot may Allah Bless you brother❤️

Abdullah can you please tell me how to make the roof of a level ?



For a roof you can just make a 3d plane and set it to a higher Z order

Hey abdullah when i import a sprite as png when projecing it as a sprite it show black screen around it can you tell me how to fix it

I am actually having the same problem...

Hey abdullah i  want to know that some times when i preview it starts to walk diagonally instead of walking straight what should i do?

I don't know how to fix it but i know why the problem occurs . It is because if your mouse is not lockedand the mouse is moved then the value of Mouse Pointer Lock Movement X and Y change without the mouse actually moving. If you click on the game straight away than it will be normal

(3 edits)

Hey first of all thanks you helped me a lot. I fixed the problem just by adding the condition if the pointer lock with the (change the angle of player) action :)

Nice, could you show me a screenshot of the events