Questions tagged [side-scroller]
95 questions
0
votes
1 answer
How to display or move sprite in as3 side scroller?
I have a sprite in my library called myRocket but it won't show up.
I made my sprite a movie clip then I deleted it off the actual page so it was just in the library. I thought using this code, the sprite would appear once I started up the game but…

Cameron
- 1
0
votes
2 answers
Adjusting the ship's speed and limiting the ship's range Python Pygame
Good evening,
I am creating a side-scroller game in Pygame but I am running into trouble adjusting the ships speed and limiting the range.
I am new to python and still in the learning process.
I keep getting an AttributeError: 'Ship' object has no…
0
votes
1 answer
how to show html and css select scroller bar for both vertical and horizontal
I tried the following HTML and CSS that only show horizontal scroller. I can scroll vertically by the keyboard. How can I show vertical scroller so that the user can scroll by the mouse as well?
This is…

masiboo
- 4,537
- 9
- 75
- 136
0
votes
1 answer
attempt to call method 'applyForce'
I'm making a side scroller and when i start my game i can touch the screen to keep my penguin in the air, but when i fail and collide with an ice block and press play after going to restart.lua i get the error attempt to call method…

Dayviex
- 1
- 2
0
votes
1 answer
How do I turn my pygame into a side scroller?
I'm building a game with pygame and I have a problem with this game, I don't know how to make the background and the platform scroll slowly to the right as my player sprite moves to the right.
I want the scrolling to happen in def shift_world().…

FadeCo67
- 1
- 1
0
votes
2 answers
How to smooth a scrolling object in Unity 3D
all.
I am making a mobile game in Unity, and it's a side-scroller. I want a platform to move across the screen until it gets off-screen. Then, I will set its position back to the starting point, so that the scrolling appears infinite. Here's my…

vinny_711
- 51
- 9
0
votes
1 answer
Making a Platform game with Corona SDK
I'm trying to develop a platform game similar to Geometry Dash but i'm facing a lot of problems during the making of the algorithm.
I don't barely know how to proceed. Are the levels structured with a long image ( that is the ground) with obstacles…

Luca Pasini
- 141
- 8
0
votes
1 answer
Monogame Basic Collision Detection Fails to Work
I have a weird issue when it comes to detecting basic collision and frankly, I can't figure out why.
So my movement for my player is in my Player.cs Class and in this class contains a Update() method that is called in my main game loop in…

BlazeXenon
- 40
- 1
- 8
0
votes
1 answer
Unity 2D enemies leaving corpses and walking over them
I'm doing a sidescroller where enemies will leave corpses after they are killed. I've tried to do colliders, but any following enemy will glitch horribly when walking over a corpse. Is there a solution for that?

Oleg Bondari
- 1
- 1
0
votes
1 answer
Horizontal tiling background
I'm coding for a game and want the background to repeat itself.
xOffset = (int) (camera.getX() % WIDTH);
g.drawImage(bgInv, xOffset - WIDTH, 0, WIDTH, HEIGHT, null);
g.translate(xOffset, 0);
g.drawImage(bg, 0, 0, WIDTH, HEIGHT,…

David Gomes
- 650
- 2
- 10
- 34
0
votes
1 answer
How Do I make a slide into view when a button is clicked?
I have a page that has a background wallpaper with 100% width and its 100vh height. The page has 3 buttons on it and one of the buttons is located at the extreme left side of the screen. When I click that button, I am hoping the div would slide to…
Levin
- 65
- 1
- 2
- 10
I have a page that has a background wallpaper with 100% width and its 100vh height. The page has 3 buttons on it and one of the buttons is located at the extreme left side of the screen. When I click that button, I am hoping the div would slide to…

Levin
- 65
- 1
- 2
- 10
0
votes
1 answer
Creating boundaries for scrollRect for platformer game as3
Writing a side-scrolling platformer and figured that scrollRect would be best for memory, since it only renders the rectangle and not the entire stage. I have it centering my hero and scrolling with him. My problem is with creating the outer…

PHaZerous
- 59
- 9
0
votes
1 answer
The camera in a side-scrolling tile based game in moving slower than the character
In my side scroller game, when the character is moving past a specific zone (on the left side of the world) the camera should start moving until the character is past the next zone (on the right side of the world). However, when I cross the first…

eirik-ff
- 153
- 9
0
votes
0 answers
scrolling never-ending background in Game not working as expected
I am working on my first side-scroller game and am trying to achieve a neverending background effect and it's nearly working as i would expect but there are little glitches.
I have 2 instances of the background (each fills the screen width), with…

user2145312
- 896
- 3
- 10
- 33
0
votes
1 answer
cocos2d spaceship targets enemies, then shoots in order
Im using cocos2d version 3 in Xcode.
I want to move a sprite to a number of touch locations, in the order they were touched. It'll be a different number each time.
With TouchBegan I've added sprites that look like targets at the touch locations,…

SunnyDay1203
- 5
- 4