Questions tagged [side-scroller]

95 questions
0
votes
7 answers

How do I make a side-scrolling iPhone app?

I am working on a side-scrolling iPhone app, and I have every resource, except the actual side scrolling part! How do I make an app so that it side-scrolls? To be more specific, I want the view of the app to scroll when a UIImageview(player) hits…
Flafla2
  • 691
  • 2
  • 11
  • 21
0
votes
1 answer

How to make a sidescroller camera

So me and a friend are wanting to make a sidescroller but we have come into an issue with the camera. How can we make a camera that will follow the player but not in a hard scrolling but instead a soft scrolling. What I mean by that is that the…
Tory
  • 916
  • 1
  • 11
  • 19
0
votes
1 answer

cocos2d: why isn't label appearing?

Hello I am making a side scrolling cocos2d game and I want a label to show how far the user has flown in the game. For some reason with the code I wrote the label is not appearing. Here is my GameEngine class that calls the class method that is…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
1 answer

Cocos2d: SIGABRT error with sprite sheets

Hello I am making a cocos2d side scroller. I need to use a sprite sheet for my game and when I do use it it gives me a SIGABRT error I used an exception breakpoint to see the exact line of code that is causing the problem and got this…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
1 answer

Cocos2d: .plist file giving me a SIGABRT error

Hello I am making a side scrolling cocos2d app. I am using a .plist file for most of the data in my game. When I run the code it immediately gives me a SIGABRT error. I am new to objective c and cocos2d and I am not experienced with .plist files.…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
2 answers

how to remove children in cocos2d, is there more that one way?

Hello I am making a Cocos2d side scroller. I have a CCSprite that I add using the [self addChild:sprite]; method. After a while I want the CCSprite to be removed. I tried the [self removeChild:sprite cleanup:YES]; method and it gave me a thread bad…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
1 answer

how should I change this to use CCParallaxNode?

Hello I am a beginner to cocos2d and objective c. I am making a cocos2d side scroller. How can I make this code be continuous?? backgroundNode = [CCParallaxNode node]; [self addChild:backgroundNode z:-5]; treeBackground = [CCSprite…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
1 answer

Adding enemies to screen one at a time in an endless loop with a delay in between each one but it does not work

Hello I am working on a side scrolling cocos2d game where enemies are added to the screen one at a time in an endless loop. I want to know how to put a delay in between each added enemy. Also when the "blueEnemy" is added a second one comes onto the…
PoKoBros
  • 701
  • 3
  • 9
  • 25
0
votes
1 answer

Flash Side-scroller game objects shakes while hero is moving

I'm trying to create a side-scroller game using Citrus Engine in Flash CS5 Everything is done but just when the Hero is moving everything starts shaking! Before I was making all objects as Movie Clips and i changed it to some images and its still…
Dr TJ
  • 3,241
  • 2
  • 35
  • 51
0
votes
1 answer

How to put the player in the center of a libgGDX camera

I just recently started using libGDX to make games, and I am trying to implement an orthographic camera to fallow the player around when he moves (making a 2D side scroller). For some reason that I don't understand when I do everything that should…
JeremeiBou
  • 61
  • 1
  • 1
  • 5
0
votes
2 answers

XNA Platformer Backgrounds No Longer Change

So I am working on a side scrolling platformer. I changed some code to allow for scrolling backgrounds, which is working perfectly; however now when my levels advance the background stays the same. This is the class for Layer class Layer { …
Pranaryx
  • 11
  • 2
0
votes
1 answer

2D Side Scrolling HTML5 Game

I am trying to make a side scrolling game in html5. I am wondering how i can have lets say a 500px by 500px viewing are but the background is about 500px high by 2000px wide. When the viewing area scrolls more of the background appears but the…
Anzwur
  • 603
  • 1
  • 6
  • 10
0
votes
1 answer

ScrollTo conflict with Mousewheel.js, need more specific events?

I'm building a side scrolling website. I'm using Mousewheel.js from CSS-Tricks to enable sidescrolling and scrollTo from Ariel Flesler to jump to specific points in the site (which I haven't really mastered yet but I think that's besides the point).…
spikem
  • 173
  • 3
  • 13
0
votes
1 answer

side scrolling game with AndEngine and XML-Levels

i just started a side-scrolling game with andengine using xml-levels and box2d. does anyone know how get the level scrolling when i move the player, so that the player stays in the center of the screen? thx
blub
  • 21
  • 2
0
votes
1 answer

AS3 Collision Process continually returns False

function ProcessCollisions():void{ //respawn if player died if(percentHP == 0){ Player.x = _startMarker.x; Player.y = _startMarker.y; Gun.x = Player.x; Gun.y = Player.y - 45; _boundaries.x = 0; _boundaries.y = 0; …
Cory
  • 71
  • 7