Skip to main content
4 votes
Accepted

How can I create the water-like blur effect in Chameleon Run using SpriteKit and Unity?

It looks to me like this could be done with a TrailRenderer. This leaves a ribbon of 3D geometry behind a moving object, onto which we can assign a material to control the way it renders. We can use ...
DMGregory's user avatar
  • 135k
3 votes
Accepted

How to determine contact bodies when multiple bodies overlap and a third makes contact with both at the same time

I'm not really a fan of this : ...
Steve Ives's user avatar
3 votes

Rotating 2D sprite around tilted Y axis

I think this would be easiest using SKTransformNode.setQuaternion instead. This makes it easy to express a rotation by some angle around any axis you choose, rather than only rotations around the ...
DMGregory's user avatar
  • 135k
2 votes
Accepted

Rotating 2D sprite around tilted Y axis

Try creating the art so that the red line is horizontal, then rotate it in Swift on its zRotation, and animate scaling along the ...
John Nyquist's user avatar
1 vote
Accepted

In an Entity-Component-System architecture how should my map be represented?

I see many GameplayKit examples that are more EC than ECS, which can add to confusion as they put a lot of code in entities. GameplayKit supports both approaches. In an ECS, an entity is an ...
John Nyquist's user avatar
1 vote
Accepted

Choosing Number of Points and PPI Resolution To Future-Proof Game Images

There is no way I will cover every possible style out there. I will mention pixel art, because it is probably the one that requires more care, but I'm not going into much detail here. DMGregory has ...
Theraot's user avatar
  • 27.2k
1 vote

How can I prevent the camera going out of bounds?

How about simply adding a condition in updateCameraPosition? You'll obviously need to define leftBoundary and ...
West1's user avatar
  • 131
1 vote
Accepted

tvOS game launch image shows on simulator but not on device

After multiple deletes from the device, clean and device and XCode restarts, it magically started working, though not always 100% reliably. Seems to be "one of those things".
margusholland's user avatar
1 vote

Use GKEntity's component(ofType:) with inheritance

Well it appears as if no one here seems to know it so I'll just post what I used which is a new method that I added in an extension to GKEntity (which I was ...
lsauceda's user avatar
  • 151
1 vote

Simulate wind affecting a boat using a 2D physics engine like Box2D or SpriteKit?

I think you can make this very simple by using the difference in angle between the boat and the wind direction. Lets say the wind is going from the west (left) to the east (right) we can represent ...
dfour's user avatar
  • 768
1 vote
Accepted

Breaking up a map so countries can be colored separately in Spritekit

There are a few methods one could use to create procedural irregular shapes that are individually capable of being colored. The simplest of these is likely to use SKShapeNode to create a Node based ...
Attackfarm's user avatar
  • 2,209
1 vote

How to adapt a webgl shader using mouse position to have symmetrical behaviour

Just replace all the Y-axis-dependent variables foo with 1 - abs(2*foo - 1). This includes ...
Jimmy's user avatar
  • 9,029
1 vote

Drawing an isometric characters: solutions for aiming

Drawing each position takes an incredible amount of time and I believe the old isometric games just did that. Nowadays developers use 3D assets to render all possible directions. Once you have created ...
Madmenyo's user avatar
  • 1,979
1 vote

2D Infinite scrolling terrain on two axes

My Infinite Terrain Approach: I have started with an approach that favors completing this task as soon as possible at the cost of performance optimization. Create an invisible node with a physics ...
peacetype's user avatar
  • 145
1 vote
Accepted

SpriteKit SKTileMapNode with Tileset Integration

I'm working on the same thing, and the best options I've found are to either use imagemagick to split the images then import them to Xcode, or to import the master image and split it in code ...and ...
Jacob Johnson's user avatar
1 vote

Should the Sprites in my Boids implementation be backed by model objects?

Coming from a game dev perspective, I'd suggest you pursue a entity component based system (ECS) to build up your simulation. An entity is a container for components. Components represent state (and/...
Benzi's user avatar
  • 282
1 vote

Making Bigger Touch Space in Node Using SpriteKit And Objective-C

Given that PaddleNode is a subclass of SpriteKit Node, what would be an important thing to do is to first set the ...
Unheilig's user avatar
  • 515
1 vote

How to determine contact bodies when multiple bodies overlap and a third makes contact with both at the same time

Here is what worked best for my latest project based on Steve's answer, please note though this is using c++ and the cocos2dx framework: ...
Katie J's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible