Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
16 views

Unity - rotating character for 2.5D platformer

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 ...
0
votes
2answers
49 views

Make a platform appear and disappear constantly

I am building a platformer. In this game, I need one of my platforms to constantly activate and deactivate. Here is how I have tried to code this so far, but it causes Unity to freeze: ...
0
votes
0answers
72 views

How do I program a fan in a platformer game?

Fan physics I have a platformer game and want to have fans in it that blow in a given direction and if the player presses the jump button they can go even further. How do I do this? side note: I ...
0
votes
1answer
42 views

How to control jump strength by how long the player presses the jump button?

In a platformer game I am working on, I want my character to have controlled jumps. If I simply tap the jump key it will jump a just a little or if I hold it for a time it will jump higher. What do I ...
1
vote
1answer
41 views

Godot: How do I asign movement cost to tiles in a Tilemap?

Pathfinding I am trying to apply godot's Navigation to create a pahtfinding enemy in a Platformer game. I've read about a method to allow for pathfinding to take into account gravity. My issue is ...
0
votes
1answer
66 views

How is background of 2.5d games developed

When I say 2.5d games, I mean like this: Bloodstained Ritual of the Night DEMO gameplay My question is, I know the characters and platforms are 3d but are the backgrounds all 3d as well? Even if its ...
1
vote
1answer
28 views

Is there a tried-and-true method for calculating or detecting the edges of platforms?

In terms of a simple 2D platformer, I was wondering if, over the years, a right way has emerged as far as determining whether or not a strolling character has reached the edge of the platform it is ...
0
votes
0answers
10 views

Godot: How to maintain constant inertia

Inertia If I have a platform moving vertically I want the player to jump onto it without it losing its motion and slowing down or stopping. I have tried looking at the settings to CollisionShape2D ...
19
votes
13answers
6k views

How to make healing in an exploration game interesting

I'm creating a game with a heavy focus on exploration, though I'm at a bit of a loss for healing. The problem is that I don't like the idea of enemies randomly dropping health, as this usually ...
0
votes
1answer
59 views

Ideal 3D platformer controls for Keyboard + Mouse [closed]

I am developing a 3D platformer, and I know that controller is optimal for the precise movement, but I don't feel players should have to buy a controller just to experience a 3D platformer that is ...
0
votes
1answer
38 views

Phaser: How to call a function inside another function?

So I actually have the following code that works: ...
0
votes
0answers
12 views

Phaser: How to use a simple timer from 0 to 3

I am using the following code (which is a simplified snippet in order to make it more readable): ...
2
votes
2answers
47 views

Parabolic Jump Libgdx Without Box2D and With Vectors

I have tried to write a jump method that sketches out a parabolic jump but it results in either no movement, or a jerky upward movement when I try to scale up dt. I have the following things defined: ...
0
votes
0answers
30 views

how to check if player stands on platform?

I want to test if player stands on platform. I have 32x32 platform sprites. My code looks like ...
0
votes
2answers
65 views

Keep platformer jump height consistent with different frame rates

I want to achieve a platformer jump similar to that of Super Mario Bros. (keep pressed the jump button to jump higher) and I want it to be frame rate independent. At 30 FPS it works as I want. However,...
0
votes
2answers
53 views

How To Destroy/Deactivate one enemy without affecting other enemies of the same type?

In my game, you jump on zombies'heads to squash them. Currently I'm only able to have one zombie in my game. When I add another (duplicate or drag from prefab), then run the game, I can squash one ...
0
votes
1answer
42 views

How to stop all character movement when jumping against the side of a platform?

My Sprite is Moving against a platform. I have a script and an unusual one (that's what one of the member said.) My isGrounded isn't using any rayCasting. I didn't have any problem with it but when I ...
0
votes
2answers
113 views

How to mitigate speed effects on moving platforms?

I am implementing horizontal moving platforms in my 2D platformer. The way it's implemented currently, when my player lands on a moving platform, he is reparented to it so that his position updates ...
3
votes
1answer
247 views

Why do old platformers typically scroll to the right? [duplicate]

Lots of old platformers are only left-to-right-ish and they don't allow you to move viewport left. I'm interested was it just a game design choice or it's due to some limitations back then. I have a ...
4
votes
2answers
124 views

How to implement a clipped shadow in 2D?

I want to create a shadow effect similar to the one found in JoyMasher's Blazing Chrome. Notice that the shadow clips when you're on a ledge, and projects to the geometry below. Currently, my ...
1
vote
1answer
81 views

How to synchronize moving hazards?

I am trying to implement a saw blade hazard in my platformer. The saw blade simply moves from point A to point B, and back, at constant velocity. (Let's assume all saw blades move at the same velocity....
0
votes
1answer
209 views

ScreenToWorldPoint and ViewportToWorldPoint

I'm currently following tutorials on Youtube to learn howto use Unity. My code runs perfectly as per the tutorial, but i just have some questions regarding the code, with regards to screenToWorldPoint ...
0
votes
1answer
83 views

How can i collide two bodies without filtering(collision filtering)?

I have two bodies with fixtures. One is platform or ground and other is the player itself.I want to collide the player to the platform without bit filtering.How can i do that?I can see the rectangular ...
0
votes
2answers
134 views

How Can I Fix Spawning The Tiles?

I am making a 3D infinite runner game in Unity in C#. When the player has reached the end of the tile it should spawn another tile and then delete the previous tile. When the player reached the end of ...
0
votes
1answer
263 views

How to remove horizontal black bar at the bottom of the game screen in libgdx?

Here is the screenshot .Here is my Play constructor in Play class.
0
votes
2answers
72 views

How to render gameobjects with same size and same position in unity

canvas can be fixed for all screen sizes but I want to fit gameobjects which is not in canvas, for all sizes of screen. This is the transform of my game object The game object's size and position ...
0
votes
1answer
67 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 ...
0
votes
1answer
87 views

Game map for platformer megaman-style game

I want to make platformer game that would be sort of like megaman. I'm using SFML library for it. I have a problem with creating a map. Should I hardcode every single platform, add it colliders and so ...
3
votes
1answer
82 views

Accessibility in Games

We're currently developing a 2D Platformer and we decided to take some time to implement Accessibility Features. But we couldn't find good information about Accessibility Features, muss less how to ...
0
votes
1answer
49 views

Measure the length of the platform in Unity

I created a platform in Unity. It consists of an empty parent object and child objects. Child object have attached components: Sprite renderer and ...
1
vote
2answers
233 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
1answer
403 views

Godot 3 - Trying to make a character dash (wavedash)

So, I'm trying to make a character do a wavedash in Godot 3 and I don't know what I'm missing here. When I press 'Z', the character should burst speed and then a few miliseconds later it should ...
2
votes
2answers
258 views

Unity2D: Wrapping a line around an object

I have this 2d platformer made out of box colliders. I have the player connected to a point by a LineRenderer and a DistanceJoint2D, for use in physics puzzles. This tool lets him link to a location ...
1
vote
1answer
93 views

How to make game scene bigger in 2d platformer?

Hi i am current making a 2D platformer game but after i reach an end of screen then it doesn't move forward how to increase the game play screen area so that i will be able to go in vertical direction ...
0
votes
1answer
442 views

Unity: RaycastHit2D continually returns point (0,0)

firstly I'm a bit of a Unity noob so sincere apologies if I've done something dumb. I'm attempting to use a RaycastHit2D to detect when the player is on a platform. If he is, the point it returns ...
105
votes
4answers
20k 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(...
4
votes
0answers
623 views

Slope handling in a tile-based platformer

I'm trying to implement slopes in my 2D tile-based platformer made in GameMaker Studio 1.4. I'm done with the normal solid block tiles, they work like charm, but slopes are even harder than I ...
1
vote
1answer
132 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 ...
2
votes
1answer
205 views

Falling through the ground

I spawn my player he falls hits the ground and starts falling through it slowly. Code: ...
0
votes
1answer
595 views
19
votes
7answers
7k views

How can I detect the player being crushed in a 2D platformer?

I'm checking collision for a platformer character as shown in #1. The red dots are the pixels that are checked and the grey lines indicate the axes they pertain to. I like the results I get from ...
0
votes
1answer
335 views

How can I make my character jump?

I'm trying to make a platformer. I'm trying to figure out how to make my character jump. I have tried setting a direction variable (after I enabled physics on the room, the character, etc), and it ...
3
votes
1answer
171 views

Why does my Character Jump only Half as High?

I am trying to implement simple Newtonian physics for my game. However, my character only jumps half of the height I would expect him to. Physics says that the take-off velocity (impulse) ...
3
votes
0answers
248 views

2D platformer:How to avoid “bouncing descend” when walking down slopes?

I've been working on implementing slope collision by SAT(Separating Axis Theorem). And then I have a trouble. When my character walks down slope, it moves like a bouncing ball: The slope has 3 ...
0
votes
1answer
104 views

How to interrupt an animation and transition to another?

I am trying to make a 2D platform game which is Megaman-style. I have some problems when I make shooting animation. In Megaman game, the animation can interrupt by press keys. Just like this: For ...
2
votes
1answer
104 views

Keyboard input conflict in wall jump

I'm trying to make a Megaman-style wall jump in my 2D platform game with JavaScript. The character can do A,B,C motions when it sticks the wall: My problem is that when I trying to jump off the wall(...
5
votes
2answers
1k views

What's wrong with using physics engine in 2d platformer?

I started making my simple 2D runner game with a splash of physics (particularly, rope physics). It's in Love2d, project is targeting mobile platforms. Development goes fine, though I meant to ask one ...
0
votes
1answer
125 views

Polygon trigger colliders for 2D platformer

I'm creating a 2D platformer in MonoGame and I'm thinking of using AABB as physical colliders for characters and then have a trigger polygon collider on each character for checking for example if an ...
0
votes
3answers
97 views

Camera and enemy behaviour in AS3 platformer

beginner in AS3 here. I am working on a platformer game based on the code of a provided example exercise. I have the following problem: I have an enemy who shoots bullets. The enemy is the parent, ...
7
votes
6answers
2k views

How exactly do slopes and edges work in this scenario?

So this sort of behaviour probably exists in other games, but the old Kirby games - Kirby's Adventure and Kirby's Dreamland 2 - is where I noticed it. So, when dealing with regular block platforms, ...