gameplay-kit Questions

3

I have the following code in my main.swift: let strategist = GKMinmaxStrategist() strategist.gameModel = position strategist.maxLookAheadDepth = 1 strategist.randomSource = nil let move = strateg...
Darnell asked 5/1, 2016 at 16:44

3

Solved

I would like to implement a simple GKGameModel in Swift 2. Apple's example is expressed in Objective-C and includes this method declaration (as required by protocol NSCopyingfrom which GKGameModel ...
Facile asked 20/8, 2015 at 7:19

5

When I add a CustomComponent (GKComponent) to an entity in Xcode SpriteKit scene editor and try to load that .sks file using a GKScene.init, GKScene.rootNode is not set. Even stranger, this happens...
Colossians asked 5/10, 2019 at 3:21

3

I'm diving into GameplayKit with Spritekit and from what I gather, you subclass GKEntity and then start adding GKComponents to that entity. The entity would more or less just be a bag of components...
Womanizer asked 7/9, 2015 at 21:53

2

According to the Sprite Kit documentation for entities and components When you add entities (and their components) to a scene in the Xcode SpriteKit Scene Editor, Xcode automatically archive tho...
Magma asked 23/8, 2017 at 3:8

1

Solved

I am working with SpriteKit and draw a scene by the help of the scene editor in xcode. According to SpriteKit, we can use Navigation graph to draw the paths and I am able to draw a path using navig...
Rajasthan asked 28/6, 2017 at 9:44

0

I am trying to make a sprite move towards a point while avoiding some obstacles. The graph that I am using is a GKObstacleGraph, obtained from this scene: For simplicity I decided not to use a ...
Epigeal asked 2/6, 2017 at 14:4

1

The subject My question is about the division of the update cycle when combining Apple's frameworks in order to respect the typical patterns and good practices on the subject, since most of the do...
Jalisajalisco asked 15/1, 2017 at 19:23

2

Solved

I am developing (or atleast trying to develop) a decently big real time tactics game (something similar to RTS) using SpriteKit. I am using GamePlay kit for pathfinding. Initially I used SKAction...
Reuter asked 28/9, 2016 at 18:9

1

Solved

Not long ago, Apple introduced GameplayKit elements to Xcode's Scene Editor, which is great. However, I seem to have issues with the Navigation Graph element: What I try to achieve is to draw a G...
Celtuce asked 18/12, 2016 at 10:45

0

I am seeming to have difficulty keeping my sprite nodes inside a map boundary that I have set up in the following way: I have an SKNode *enemy that moves around an SKScene by goals and behaviors co...
Soupandfish asked 27/7, 2016 at 5:25

1

Solved

I started investigating this issue with this question which was partially resolved in the iOS 9.2 SDK. However, upon further investigation, I realized that this framework was still not working as ...
Peppers asked 21/1, 2016 at 21:10

1

Solved

I'm trying to move an SCNNode around a scene, constrained to a GKGridGraph. Think along the lines of PacMan but in 3D. I have a ControlComponent which handles the movement of my SCNNode. The logic...
Lundquist asked 31/12, 2015 at 17:39

1

Solved

I have what is perhaps a stupid question about Apple's new GameplayKit. I am creating a 2D grid-based node layout for my game. I mostly love the functionality of the GKGraphNode2D, but would like ...
Erminna asked 12/8, 2015 at 20:47

2

Solved

I was wondering if anyone here has had any luck using GKMinmaxStrategist. This class/feature was showed off at the WWDC, but most of the sample code was in Objective-C, which was a disappointment. ...
Peignoir asked 23/6, 2015 at 1:33
1

© 2022 - 2024 — McMap. All rights reserved.