I am making a 2D platform game (like Mario). I move the SKCamera to left and right with 2 buttons (left and right). The x and y coordinates of the 'Mario-spite' is the same a the x and y coordinates of the SKCamera. I move the SKCamera and also the 'Mario-spite' with 2 px. How can I make a parallax effect (with 2 or more background layers/nodes) at the moment I press the left-button or the -right button. I am using SKTilemaps. The answers on Stackoverflow is not what I am looking for.
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in SPRITE-KIT
- Calling Dealloc method in sprite kit
- How to call an object's methods in touchesBegan when touched?
- NSTimer won't start (Swift)
- iOS coordinates for iPad and iPhone game using spritekit
- How to segue to View Controller from skview
- In app purchasing asks to login on viewDidLoad and pauses the whole app
- SpriteKit share button not working
- TextField does not work
- How to make an SKSprite node move side to side on its own when game starts?
- SKAction.moveTo not working at all
- SKProduct keeps returning nil. SKPayment Transaction is not working
- How to check if two CGVectors are equal in Objective-C?
- How to translate SKPhysicsContact contactPoint into my SKSpriteNode position
- why isnt my second view loading after transition?
- SpriteKit using 95-100% CPU when running game with large tilemap (JSTileMap)
Related Questions in 2D
- Algorithm for drawing tiles on screen
- Object doesn't moving well in rotation
- Cocos2d : Shooting a ball in the direction of the mouse click/Touch
- Error: cannot convert 'int (*)[3]' to 'int (*)[100]' for argument '1' to 'void repl(int (*)[100], int, int)'
- How to add a string to a 2D array in C
- Fitting 2D sum of gaussians, scipy.optimise.leastsq (Ans: Use curve_fit!)
- Java 2D game random rectangles
- 2D perspective transform in JavaScript
- List of 2D Arrays with numpy
- Make two physics objects not collide but do detect collisions in Unity
- Index of an array from a 2d np.array in Python?
- Generate 2D grid with alternation probability
- how to add Scoring to unity3D 2d top down car game?
- Blurring in PyGame
- Destroy Gameobject according to distance value
Related Questions in SKCAMERANODE
- How to make node(s) unaffected by SKCamera
- Parallax effect with SKCamera
- Why do my camera child nodes not appear?
- Swift: Wrap / loop / repeat nodes outside camera bounds?
- Banner Ad is Moved When Scene is Switched due to SKCameraNode
- Math for zooming in and out of a SpriteKit scene
- moving buttons along with the camera in swift
- Smoothing out zoom with limits in Spritekit
- SKCameraNode.position didSet does not get fired when moved with an SKAction
- Swift: Positioning Children of the SKCameraNode
- Swift: Event for when node leaves SKCameraNode's view?
- Swift 3.0: SKSpriteNode as Button does not work when given a non-SKView parent?
- SkCamera Node has ambiguous size?
- spritekit how to selectively scale nodes
- Swift: Agar.io-like smooth SKCameraNode movement?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?