Skip to main content

Questions tagged [platformer]

A genre of action game whose focus is on platform-based movement. It is equally present in both the 2D and 3D game worlds.

Filter by
Sorted by
Tagged with
1 vote
2 answers
362 views

How can I implement a Varying Jump Height Mechanic for my character?

First of all I want to mention that English is NOT my mother tongue, I am using GODOT to make my game and that I am only 16, so I don't have any prior programming experience, although, I understand ...
0 votes
3 answers
2k views

How to stop the slide on slopes?

I'm struggling with a wee issue where if my character walks up a slope he slides back down when at rest, and bounces down when running down the slope. I've followed a few videos but none seem to ...
1 vote
2 answers
117 views

Best Collision detection for slopes

I know this question sounds familiar but I'm working on a pretty big platformer (Written in PJS, on Khan Academy) and I don't want it to be just plain ground, I want slopes in the game (gentle slopes, ...
0 votes
1 answer
1k views

Rotating character for 2.5D platformer in Unity

I'm currently making a prototype for a college project in Unity. The game is a 2.5D platformer, though I've incorporated a script for the camera from a 2D platformer so the camera moves ahead of the ...
8 votes
4 answers
11k views

Handling movement on sloped surfaces - clamping character to sloped surface

I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
0 votes
2 answers
553 views

How can I assign a layer to tiles on an individual level?

I've just started out with my first game in Unity. It's a simple 2D Platformer with a tile-based level. When coding in the movement, I used the Physics2D.OverlapCircle() and an empty to check whether ...
0 votes
1 answer
2k views

Stop 2D platformer character from sliding down slope

I'm making a 2D platformer game with the default Unity 2D physics. I am implementing slopes, but my player slips down the slope because of the physics. Here is the code I use for the player movement: ...
0 votes
0 answers
33 views

2D line tracing in a 3D environment

I am trying to build a grapple hook for my 2.5D platformer game. First I started with creating a line trace between the character to the mouse cursor but I want to restrict the end point to always be ...
0 votes
1 answer
35 views

How do I move both the child & parent game objects at the same time?

My current code is: ...
1 vote
0 answers
692 views

How do I implement corner correction in a platformer?

I'm writing a platformer in Unity and I'm trying to make it so that when the player jumps up to a ledge but barely misses (imagine they hit their toe on the ledge, or maybe even their foot, I'll play ...
0 votes
2 answers
104 views

Why is my enemy not moving?

I'm trying to make a 2D Unity platform game for a school project, but I can't seem to get the enemy to move. ...
1 vote
1 answer
436 views

Hold and swipe can't work together

I Have a character in my game that must go when player hold finger at the screen, but when I swipe character first go, and then do swipe. (for example jumping - character first go, and only then jump)....
0 votes
0 answers
76 views

Pixel platformer character collides with blocks above while there's still a visible gap

I was trying to the set up a tile map for a 2D pixel art game in Godot 4.1 (following a tutorial) and realized that there seems to be an issue or something I am not aware of with the way collisions ...
1 vote
1 answer
553 views

JIttery rendering and ghost trail behind platformer character in Godot

I have no gamedev experience and I just started learning. I wanted to develop a basic platformer to learn. I got stuck pretty soon with rendering in Godot. When I run the game, it just feels... ...
0 votes
0 answers
42 views

Enemy not responding to chained attack

I am working on a 2D mobile platformer where there will be different characters with unique skill sets. I am working on a character that should be able to perform chained attacks. I have a button in ...
1 vote
0 answers
295 views

Procedural NavigationPolygon for a platformer in Godot 4

I'm trying to make navigation possible for npcs in a 2D platformer. The game generates chunks with random platforms as the player ascends, so I also need to implement the navigation procedurally. Each ...
1 vote
1 answer
63 views

Player stays grounded when jumping at the side of a two tile high wall

I am currently developing a simple Super Mario Bros. like platformer in Cocos2d-x v2. I am now at the step of doing wall sliding with two axis-aligned bounding boxes (tiles) but I've not quite found ...
1 vote
1 answer
140 views

In platformer video games, what is the term for the size of the character on the screen?

In 2D platformer games, what is the term or word for determining the size of the player character on the screen? For example, the player character in Castlevania: Symphony of the Night is very small ...
0 votes
0 answers
185 views

Trying to get a Character to face the direction based keys pressed left or right instantly

I finished up my movement script which is finally working fantastically. The only issue I am having is getting the character to face the direction when I press either left or right on the keyboard. ...
1 vote
1 answer
134 views

How can I fix this NullReferenceException error while all the references are set to specific objects?

I'm currently working on a boss fight for my game. My problem is that I keep getting a NullReferenceException error that prevents the boss (named The Smallest Stain)...
2 votes
1 answer
122 views

How can I initialize a sprite programmatically in Unity

Hello everyone and thank you so much for your help! I've tried following the answer at Unity 5 2D drawing sprites programmatically but nothing happened. I have a blank screen with just a background ...
0 votes
1 answer
171 views

How to make raycast go through platform effector?

I'm making a 2D game and I'm using a raycast. I want the raycast to ignore the platform when hitting it from beneath, but not when hitting it from above. Right now the raycast always hits no matter ...
1 vote
0 answers
430 views

How to make a moving platform with Unity Tilemap?

I am trying to make a 2D level of a game and want to know how to move a specific tile left and right. All the level is designed on a single Tilemap. I want to move one platform left and right. How ...
3 votes
2 answers
2k views

How to map gamepad inputs for my platformer?

With keyboard+mouse controls, we seem to have an unspoken control mapping standard, with keys be like WSAD for moving, E for use, mouse button for attacks or interactions, spacebar for jumping, and so ...
0 votes
1 answer
93 views

Platformer enemy with raycast to detect obstacles keeps changing direction rapidly

I am making a 2D platform and implementing a character similar to a Mario Goomba. This character will move left or right, depending on whether or not a raycast determines that there is an object in ...
0 votes
1 answer
1k views

Using AdMob with Games that use Open GLES

Can anyone help me integrating Admob to my game. I've used the badlogic framework by MarioZencher ... and My game is like the SuperJumper. I am unable to use AdMob after a lot of my attempts. I am new ...
0 votes
1 answer
52 views

How to handle keyboard input arrow keys for a 2.5D Platformer

I need a higher level abstraction for keyboard input for a 2.5D platformer. Like I know left and right is pressed, but I want to consider things like, left is held down for more than one second, start ...
2 votes
1 answer
463 views

How to implemement smooth side scrolling in a DOS game?

I'm about to develop (just for fun) a retro DOS game with Turbo C 2.01. Currently I'm wirting directly all the pixel information to 0xA0000000 + [y * 320 + x] which ...
-1 votes
1 answer
1k views

Unity 2D How to prevent character from double jump

...
0 votes
2 answers
223 views

Best practice for detecting enemy death in 3D platformer

I'm building a 3D platformer, and I'm having issues figuring out how I should determine whether the player has effectively jumped on an enemy to kill them. My current approach uses "hurtboxes&...
0 votes
1 answer
193 views

Phaser 3 physics bug in platformer game

I'm writing a platformer lode-runner-like game. I would like to ask experienced people to see what's wrong. Everything seems to be ok but I am absolutely confused about 3 bugs. Why is the player ...
0 votes
2 answers
153 views

Wall Jump doesn't push character away from wall

I followed a tutorial about implementing a wall jump but one thing that doesn't work is getting the character pushed on the opposite side of the wall when pressing the jump button. As it is, character ...
2 votes
1 answer
289 views

How to handle duplicate logic in a state machine for a platformer player?

I'm trying to implement a platformer character using a finite state machine, but I have troubles understanding what kind of logic goes into a state and what logic goes into a main player class ...
0 votes
1 answer
95 views

Informing clients of player actions in 2d platformer

I'm creating an online game (2d platformer) and I'm having some trouble understanding what to send clients. I'm sampling each player's input and sending it to the server after a set amount of time. ...
0 votes
1 answer
349 views

Pygame Platform & Player collisions

I am trying to create a platform game where a player jumps between platforms horizontally (using a projectile curve). Currently, I have a class that blits platforms and a background, as well as the ...
0 votes
1 answer
254 views

Tiling 2D textures in random order

I am wondering what the best way to make a random set of 2D textures. Currently I have tried the follow code but I am aware that when this comes to collisions that would be an issue. Therefore I would ...
1 vote
1 answer
98 views

How to make a temporary collision?

I have a key and door system working, the character(ball) picks up the key and when it is within the collider it sets the text("press E to open") on the screen to active so that they can open the door....
0 votes
2 answers
316 views

Unity - 2D Platformer Controller responsiveness issue

I've been designing some basic controls for a 2D platformer and managed to get the feeling that I've been looking for when moving and jumping, but something is not quite right, it's not very ...
1 vote
2 answers
664 views

Java - Collision detection (Glitch)

I am working on a platformer game for the final year project in HS. However... The collision detection system I use is basically about checking wether a specific part of the character intersects with ...
1 vote
1 answer
511 views

How to make Rigidbody.AddForce less delayed in Unity3D? [closed]

I'm trying to make it so that when the player in my game moves left or right, he lightly jumps from his current position to his new position. The way I have it set up now, the jump occurs once he has ...
3 votes
2 answers
2k views

How can I avoid "Moonwalking"

Let me explain my question: I have a sprite sheet with the different frames of the animations. Each animation has 8 frames. Based on the player's input, I modify the character's coordinates, thus I ...
4 votes
1 answer
793 views

What's the best way to deal with platformer tile collisions? [closed]

I am starting with game development and creating a basic platformer game. I already have searched a lot and found some ways to implement the platformer aspect to the game, like apply a gravity, ...
110 votes
4 answers
25k views

What is actually moving in an endless runner?

For example the famous Flappy Bird game, or anything that sort really, is the player(in this case the bird, or the camera whichever you prefer) moving forward or is the whole world moving backwards(...
2 votes
1 answer
2k views

Capsule getting stuck on edge of block

I'm making a first person game and when I jump and my character gets close to the top of the wall, the vertical movement stops, jitters, or suddenly snaps to the top of the wall. Video Here is my ...
0 votes
0 answers
199 views

Best Pathfinding solution for 2D action-platformer

I'm developing a 2D action RPG with heavy platforming. The combat system and movement take inspiration from Hollow Knight and the Smash Bros saga. I would like to have some type of enemies with really ...
0 votes
1 answer
918 views

Why do edges make the player jump?

I'm making a 2D platformer with Unity and I have a problem with platform edges. This problem is usually visible in the situation where I want the player to walk up the stairs by jumping, but the ...
2 votes
1 answer
1k views

How to make a moving platform in Godot not be affected by collisions?

I am trying to make a moving platform in Godot (for a 2D platform game, but I suspect the issue would be similar in 3D). Basically, both my player and my platform are KinematicBody2D, and they move ...
0 votes
2 answers
210 views

Help with multiple powerup types

I am trying to have a single class that handles multiple powerups types and using enum for the types of power-ups and switching the powers based on enum however when there are multiple power-ups in ...
0 votes
1 answer
845 views

How to create 2D platformer maps without a game engine's editor?

I've been developing a 2D shooting platform videogame for the Sony PSP console using only the ONELua interpreter for the Lua programing language (since there is not any game engine for it). Despite ...
10 votes
8 answers
14k views

How do I prevent my platformer's character from clipping on wall tiles?

Currently, I have a platformer with tiles for terrain (graphics borrowed from Cave Story). The game is written from scratch using XNA, so I'm not using an existing engine or physics engine. The tile ...

1
2 3 4 5
9