Swift is a programming language for iOS, OS X, and watchOS. Use this tag is code in question is written in Swift.
0
votes
0answers
15 views
creating a multi player card game over bluetooth
I'm a beginner in app development so sorry if my question is cheap :(
I wanted to start developing a card game and i was wondering if apple allows customers to play over bluetooth or not ( on ...
1
vote
1answer
62 views
spritekit sidescroller how to move hero through the level
I am trying to learn spritekit by working my way through developing a simple side scrolling game, but I cannot find a clear answer on how to move the hero through the level.
The width of my ground ...
1
vote
1answer
35 views
Collisions between sprites in SpriteKit
I'm making a game in XCode using SpriteKit. The game has a player and different types of projectiles that he has to avoid. When the player collides with the projectiles, the score changes and the ...
0
votes
1answer
60 views
Where should I save game object's attributes (hp, score) in Swift?
Scenario: I have a game with several game objects on screen. Each can have different score and hitpoints. When I use collision detection for cannonball vs. ship (example) I need to know which ship is ...
0
votes
0answers
26 views
How to use objects with different attribute values in Swift?
I think this is a really basic question and to make it easier to understand what I do not understand, I use the following scenario.
Scenario: I have two or more ships in my game. They should have ...
0
votes
1answer
35 views
How can I avoid a delay with continues touch detection in swift?
I want control a character on my screen with a continuous swipe gesture. As soon as I do a swipe +x or -x my character moves left or right. And as long as I hold my finger it continuous to move to the ...
0
votes
1answer
57 views
Is it possible to detect contact with every frame change when using an animation in SpriteKit?
Is it possible to detect contact with every frame change when using an animation in SpriteKit? For example, if I have two nodes of a person walking, I want to detect contact with the ground each time ...
0
votes
1answer
39 views
How to choose a SKSpriteNode randomly?
I want to choose from 4 enemies using random and present it on scene. For that purpose I've made this:
func enemyPicker() -> SKSpriteNode {
var enemyArray = [mouse, robot, drone, block, bird]
var ...
0
votes
0answers
9 views
How to assign a button in the main storyboard to launch the GameViewController.swift file
I am quite new to swift and I have constructed a main menu in the main.storyboard file, how do I assign the 'Play Now' button to launch the GameViewController.swift file where I actually plan to ...
0
votes
1answer
139 views
problem with SCNTransaction in Scene Kit
I'm trying to move an object over a period of ten seconds from y coordinate 0 to y coordinate 10. the object is created at y coordinate 0. The problem is when the animation starts, the object pops ...