Questions tagged [sklabelnode]

Node that draws strings on iOS systems.

Node that draws strings on iOS systems.

https://developer.apple.com/library/IOs/documentation/SpriteKit/Reference/SKLabelNode_Ref/index.html

196 questions
0
votes
1 answer

use same SKLabelNode with different name

i'm trying to use SKLabelNode as menu buttons in my game i have 4 buttons up left, up right, down left, down right i give them name so i can catch the nodes in touch began but if i change the name of the label to something else it just don't work…
user3718160
  • 481
  • 2
  • 11
  • 23
0
votes
1 answer

SKLabelNode creates black line and not showing text on iPhone4

I am loading different texts into a SKLabeNode it works fine on iPhone5, simulator, etc... but on iPhone4 I sometimes just get a black line, instead of the text. It is weird that always the same texts are generating the failure, but I cannot figure…
Endre Olah
  • 875
  • 2
  • 9
  • 25
0
votes
0 answers

Why does this not work? I'm adding a pause button to my Sprite Kit game

So I added a pause button to my game and the freezing and unfreezing of the view works. However I want it to display a message saying "PAUSE" over the screen if the view is currently frozen. But if I'm touching my pause button it doesn't display the…
user3545063
  • 681
  • 8
  • 17
0
votes
1 answer

Sklabel being covered by a sprite

I have a sklabel node and when I add a new sprite on to the same position the label gets covered by the sprite . How can I make the label not get covered by anything that's added to the scene ?
0
votes
2 answers

Animate an SKLabel in a Scene?

How can I animate the position of an SKLabel in a scene? I've tried the following but it doesn't seem to be working: [SKView animateWithDuration:0.3 delay:0.0 …
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
1 answer

Unnamed child node when creating SKLabelNode?

I have noticed that when using SKLabelNode there is a second unnamed node added to the node tree. This node is actually an SKSpriteNode which I am assuming is being used to display the text for the label, can anyone confirm this as I can't find any…
fuzzygoat
  • 26,573
  • 48
  • 165
  • 294
0
votes
1 answer

SpriteKit iOS 7 Sknode not being removed

I am developing a game for iOS 7, and it uses Spritekit. The main skspritenode is a helicopter, and when this helicopter makes contact with a shrink bonus pickup, the helicopter shrinks to make navigation easier for the user. Here is the code for…
0
votes
1 answer

SKLabelNode not showing up after disappearing

So I create an SKLabelNode: EDIT: CHANGED CODE TO: //.h {SKLabelNode *PausedLabel22;} //.m PausedLabel22= [SKLabelNode labelNodeWithFontNamed:@"Chalkduster"]; PausedLabel22.text = @"Game Paused"; PausedLabel22.fontSize =…
0
votes
1 answer

How to get a SKLabelNode run a waitForDuration SKAction to update after an action is performed?

I am trying to have a color wheel that updates the SKLabelNode to the color that is selected after the wheel is spun. The SKLabelNode is updating right when the user clicks the wheel, and I have tried placing an SKAction waitForDuration in a couple…
stickynugz
  • 41
  • 7
0
votes
2 answers

SKScene not rendering when I need to update a SKLabelNode

I am programming a game, and using a SKLabel to view the current score. The problem is that when score changes it doesn't display the change in the screen at the moment, it does after a second more or less. What can I do to see the changes in the…
user2154826
-1
votes
1 answer

skLabelNodes only working sometimes

So I added two label nodes to my code, and want one to be hidden while the other is shown, and then vice versa once the game begins. class GameScene: SKScene { // Declarations let startLabel:SKLabelNode = SKLabelNode() let…
ETowne
  • 1
  • 1
-1
votes
1 answer

SKLabelNode.color vs SKLabelNode.fontColor

What is the difference between SKLabelNode.color and SKLabelNode.fontColor? I already know how to use SKLabelNode, and I do not want any answers stating how to use the SKLabelNode. Any help would be appreciated.
Rishi
  • 399
  • 6
  • 23
-1
votes
2 answers

Sprite kit countdown SKLabel

Good day! i want to make a timer with SKLabel that count back time in milliseconds. but i did only in seconds like this: SKLabelNode *countDown = [SKLabelNode labelNodeWithFontNamed:@"Chalkduster"]; countDown.position = CGPointMake(10,…
Pavel
  • 167
  • 2
  • 11
-1
votes
2 answers

Displaying random text using SKLabelNode

I'm new to this sprite kit.I want to display the text randomly.Actually i'm having 3 words i need to display those 3 words randomly using SKLabelNode.I don't know how to implement this.Let us take Air,Land and sea these 3 words should be randomly…
App Developer
  • 419
  • 1
  • 3
  • 16
-2
votes
2 answers

SKLabelNode Won't Update Text From Function

I have this game project and it has a coin system. I also have an option for users to watch a video ad to get 50 coins added to their total. Since the shop page is a SKScene, I run the ad through the view controller and when it is done presenting,…
1 2 3
13
14