Post

Replies

Boosts

Views

Activity

Reply to Having strange trouble with touchesMoved, need help.
I cannot access the URL, (after removing the spaces) All of a sudden FileZilla won't properly transfer images at all (yes, set to binary). Looking for a new FTP. Have added super. to all my touches (as seen below) and it still happens     override func touchesMoved(_ touches: SetUITouch, with event: UIEvent?){         super.touchesMoved(touches , with:event)         guard touches.first != nil else { return }         if toggleHigh {highliteGem(theGem: myGems[0], clearAll: true)}         if let touch = touches.first, let node = myGV.currentGem, node.isMoving == true {             let touchLocation = touch.location(in: self)             node.moved    = true             print(touchLocation)             node.position = touchLocation             node.isMoving = true             node.inSlot = false             //addTrailToTwinkle(theNode: node)         }     }
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to How can I have an SKSpriteNode follow the same path back and forth?
Actually someone gave me an easier answer on StackOverflow. This is a quote from the link below There is a method called reversed() which you could use. Below I have given your action a name of "youraction" let youraction = SKAction.follow(iconPath0, asOffset: false, orientToPath: false, duration: 1) let reverseaction = SKAction.reversed(youraction) yourspritenode.run(reverseaction) Alternatively, you can just use reversed after the action name to run it in reverse: yourspritenode.run(youraction.reversed()) https://stackoverflow.com/questions/66354936/how-can-i-have-an-skspritenode-follow-the-same-path-back-and-forth/66357189#66357189
Feb ’21
Reply to Did Xcode 12.4 get rid of "storyboards" by default?
Do I need to repeat? When you choose Storyboard as Interface` when creating a new project, you can find AppDelegate.swift or ViewController.swift. And then you can remove what you think is not needed for you. Well then, and please remember that when you first saw my posts, I had just started Xcode and Swift (mid June 2020?). If I go without SwiftUI, do I lose anything? I was watching a tutorial that showed the changes in how to create a text object, and the syntax even seemed more simplified (i.e. changing textcolor). But will I lose any new functionality (enduser wise) by not using SwiftUI? And yes, I have dedicated all day to watching WWDC presentations, and SwiftUI tutorials. I just fear in my time away from Xcode, I missed out on something I shouldn't have. Thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Did Xcode 12.4 get rid of "storyboards" by default?
Hey OOper, You've helped me a lot before. I don't want to use storyboards, but things have changed in 12.4. For instance there's no more AppDelegate.swift file. I would start at class ViewController: UIViewController before. Now there's struct ContentView: View which I don't recall when in started learning in late 2020. Has something drastically changed? Is it that I never used SwiftUI? I am still working on my game, which I started in Xcode 11.x, so no worries. But I wanted to start a new, non-gaming app, and I guess I need a reference point where to start at so I know where to go. I hope this makes sense.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21