Questions tagged [side-scroller]

95 questions
1
vote
1 answer

Cocos2d: thread error when trying to add background music

Hello I am making a cocos2d side scroller. I am trying to add a background audio file. I am using SimpleAudioEngine. This is the code: [[SimpleAudioEngine sharedEngine]playBackgroundMusic:@"Soundtrack.mp3" loop:YES]; But when I run it it gives me…
1
vote
1 answer

LWJGL: Applying a "curve" to a landscape

I am interested in creating a shader effect similar to that of the game (don't shoot me for using this example) Animal Crossing. As you move forward and backward along the terrain, the world "curves" giving the sense of being on a round surface. …
CoderTheTyler
  • 839
  • 2
  • 11
  • 30
1
vote
2 answers

Side Scrolling Background for 2d XNA game, Help desperately needed

I am trying to make a simple side scrolling game in XNA (monogame) as a learning exercise, but I am having some issues getting my head around scrolling the level. Basically, I am trying to make a simple game where the level scrolls from left to…
Pectus Excavatum
  • 3,593
  • 16
  • 47
  • 68
1
vote
1 answer

Side scroller enemy spawn system

I'm a beginner to XNA coding and am trying to make a side scroller game similar to that of Super Mario Bros. I have got player movement and enemy movement up however I am having trouble making more than one enemy and having each enemy spawn at set…
FLAVAred
  • 77
  • 1
  • 4
1
vote
1 answer

iPhone iOS is there an open source side scrolling game I can take a look at?

I'm thinking of building a simple side scrolling game where an airplane is flying forward at constant speed and the user controls up and down to avoid obstacles. Since I have 0 game development experience, I'm looking for an open source game project…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
1 answer

Object spawning and deleting

I am currently making a simple side-scroller. In unity. I am looking for a way to spawn objects before they enter camera, and remove them after they have passed the camera. All this will happn in the x axis. There are 6 different kinds of objects…
Eyrik
  • 127
  • 3
  • 13
1
vote
0 answers

Android: Sidescrolling using canvas.translate

I'm developing a 2D sidescroller game, but I don't really know how to implement the sidescrolling feature. I've heard, that using canvas.translate everytime the hero moves is one possibility, but OpenGL is also considered sometimes. I draw every…
Carandiru
  • 53
  • 5
1
vote
0 answers

Java Tiled-Image Scrolling

This is going to sound similar to my other post but trust me it's not the same. So I decided to take some peoples advice on how to scroll an arraylist.I have an arraylist that takes the Block class. Here is the Block Class: public class Block…
36redsoxfan
  • 250
  • 2
  • 5
  • 15
0
votes
1 answer

Lag in simple side scrolling game in Java

I recently built my first simple side scrolling game in java, but I'm experiencing some lag and I don't know why. When I move my character sideways it seems to be changing speed, most of the time going fast but sometimes slowing down. It makes the…
Christian.H
  • 126
  • 8
0
votes
1 answer

I need to have an array of backgrounds?

In my side-scroller, I want to have 3 backgrounds that keep looping. Whenever you get through a stage it calls the function nextStage() that sends you to the next background. In the class: package com.erikbalen.game.rpg; import java.awt.*; import…
Erik Balen
  • 275
  • 1
  • 4
  • 11
0
votes
2 answers

Unity 2d side scoller character jump no matter the speed

I've got a problem iam stuck with since 2 days and I can't seem to figure it out. I have a 2d endless runner in unity with a WorldGenerator and a WorldMover Script. The WorldGenerator uses templates to create the world and the MapMover moves each…
0
votes
0 answers

Elegant locomotive smooth side-scrolling in WordPress

I just want to ask if I may, does anybody knows how to achieve this locomotive smooth side-scrolling in WordPress? This website is also made in WordPress is there a plugin that I can use or is this can be achieved through hard coding? Thanks! Here's…
0
votes
2 answers

How can I set the same value to vars but run them seperately in different functions?

So in my project, I currently have 2 sections. Section 1 as it is reached, the page has to stick to top and scroll from left to right Section 2 as it is reached, the page has to stick to top and scroll from right to left this is my current function…
RandomCoder
  • 395
  • 2
  • 10
0
votes
1 answer

Side scrolling android game developemnt

I am implementing a side scrolling android game. The player should move in a diagonal direction and the objects around him seem to move back ward. I have structured my app like the open source project (replica island) by Chris Pruett. I can render…
random
  • 10,238
  • 8
  • 57
  • 101
0
votes
1 answer

If an elements style.left reaches something, change style.left to something else

I'm currently working on creating a simple interactive CV, with mainly javascript. The idea is that the user steers a character to the right and then a few "about me"-divs will show up. These "about-me"-divs are supposed to move when the character…
William S
  • 39
  • 6