Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hello anyone 

I’m a beginner in GDevelop and I’m currently trying to achieve the following:

  1. Player Rotation: I want to make the player rotate using the mouse or an analog joystick. I’ve tried using the mouse, but it affects all players. Additionally, I want to send the rotation data to the server so that the server handles the player rotation.
  2. Default Weapon: I want the player to start with a gun by default when the game begins, rather than picking it up. In the full production, players should be able to switch between two weapons using a current variable and variables for each gun.
  3. Sprite Size and Visibility: After changing the sprite in the player object, the spawned player is four times bigger. Also, my map is quite large, and I’ve noticed that when my player walks too far, they become invisible. However, if I walk back, the player becomes visible again. It feels like there’s a code that disables player visibility when they walk beyond the game window resolution.

    i hope i get response early cause i want to showcase my game in a gaming even in 3 days 

Hi !
1- Basically, you just copy and paste the shooting events, but rather than shooting, you rotate the character toward the cursor (not the cursor expression, but the data sent in the message by that client, which is that client cursor).

2- Server events → Weapon mechanics → Creating weapon Group & Linking weapon → take (cut) the actions from both of these groups → open Spawning players → in the action where we create the player, paste the actions we cut previously.
So you should end up with the actions create player/create weapon/ Link weapon to current player/ set weapon State.Picked to True.

3- it's not visibility issue, it's Zorder issue, It's happening because your player Zorder is set to your player Y position (double-click on the character object → behaviors → Ysort behavior) make sure it's there in your new character. Change your map object Z order set to -1000000, so the player is always above the map.

so i managed to fix the camera, i noticed the camera was moving based on the distance between the 2 players, which is not a problem for small map, but since my map was big it became an issue i ended up deleting the camera controls on the client and and added "camera center on player" my next problem now is moving the gun system to my players which so my player can shoot the gun directly i manage to move the particles to the player and it works fine (but only showed on one client end since its running on the client end), but the Big problem now is the gun have moved everything to my player but its not working can i get you discord name so we can communicate faster 


a sample of my player i hope i can delete this later

i tried to share images but could not 

Deleted 38 days ago
Deleted 38 days ago