Stack Exchange Network

Stack Exchange network consists of 174 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
2answers
34 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
34 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
28 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
93 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
210 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 ...
3
votes
2answers
101 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
59 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
83 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
0answers
35 views

How should I make a Tile-based Plat-former engine using Processing js?

I'd like to know what structures I should use for creating a Tile-based Platformer. I've created platformers before using processing js. Is there any documentation on this? Before I do this I'd like ...
0
votes
1answer
73 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
74 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
133 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
52 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
42 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
76 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
79 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
40 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
129 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 ...
0
votes
0answers
106 views

2D Tiled-based Platformer Sloped ceiling

How can I do collision detection with a sloped ceiling in a 2D Tile-based Platformer? My collision-detection follows the technique described here: http://bitkidgames.com/?p=2221 On the page it ...
1
vote
1answer
274 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 ...
0
votes
0answers
52 views

Unity 3d- adding momentum, plus only jumping on the ground

I'm making a 2.5D platformer and i want to add momentum where it start slow, then speeds up to a set number. Also while i'm here, i want my jump to only allow to jump once on the ground. If anyone can ...
2
votes
2answers
218 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
79 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
0answers
60 views

Unity3D: How to move player between two fixed points in a 2D game?

I am trying to make an endless game where the player has to jump on platforms above him in order to survive. This is a rough sketch i made: I have a script which makes my player jump automatically ...
0
votes
1answer
249 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 ...
101
votes
4answers
19k 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
426 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
0answers
57 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
153 views

Falling through the ground

I spawn my player he falls hits the ground and starts falling through it slowly. Code: ...
0
votes
1answer
525 views
19
votes
7answers
6k 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
165 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
156 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
208 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
0answers
50 views

Making tilemap terrain painting

I've been trying to build a terrain painting brush for the editor of my platform game and have been trying to come up with a good method of building it. I've made a method that checks each tile ...
0
votes
1answer
91 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
95 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
811 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
110 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
88 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, ...
6
votes
6answers
1k 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, ...
4
votes
1answer
189 views

How to handle complex inputs in 2D platform game?

I am trying to add keyboard control for my character in 2D platform game with JavaScript. The character can walk, dash and jump. Here is my current code: ...
0
votes
1answer
31 views

Crouching Up and Down XNA C# Controller

The game is a 2D platformer. The problem I have is when I press the B button to crouch from standing, I do not know how to implement a function where B can be pressed again to move back to the ...
0
votes
0answers
66 views

How to monitor the collisions between multiple bodies

I'm making a 2D platformer with Box2D and LibGDX, shooter, and I'm implementing the logic for a snail in the game. The basic idea is that it walks across the ground leaving a sort of, slime trail, and ...
1
vote
0answers
510 views

Blood covering ground in Unity 2D platformer

I have just started my adventure with Unity so my question may seem silly to experienced users but anyway I'll give it a try. If you could just give me couple of keywords I could search for in order ...
6
votes
1answer
817 views

Unity2D jumping inconsistancy

I'm tinkering with a unity2D sidescroller, and am trying to make a player controller to jump. However, when I tell my character to jump, it sometimes jumps twice the distance, and I don't know why. ...
0
votes
1answer
125 views

Causing Update loop with Coroutine Unity

Total Noob Alert! < 7 days with C# and Unity My Win Game screen becomes SetActive and my Player is SetActive false when you are standing in a trigger and crouch. That all works fine except you ...
1
vote
1answer
81 views

How to create a walkable crate box?

I have a 2D platformer with each platform having a PlatformEffector2D component. I want to create a crate that can be pushed. When I jump into the edge of the ...
1
vote
1answer
887 views

What is the best collision detection method or algorithm for a 2d platformer?

I'm working of a 2d platformer. It's a preety simple game, but the ground is flat and it looks boring. I did the collision detection for it and it's all working when the boxes are axis aligned, but I ...
0
votes
1answer
64 views

What should I use instead of randomized start positions for good-looking 2D rain?

Right now I'm randomizing the position of my 2D rain's spawn positions on both the X and, slightly, on the Y axis. It looks pretty weird right now, it has a bunch of huge clumps and unfilled areas: I ...