I've searched and I can only find things about making it move by swipping/dragging. I'm a beginner making a game on Xcode
with Sprite-Kit
, and I'm doing pretty well so far, better than expected to be honest.
But I cant seem to figure out how to make a sprite move left and right when hitting left and right buttons. I made the left SKSpriteNode
and right SKSpriteNode
(I don't think that's correct) and they show up where I want obviously, but I don't know how to enable them to be touched and make the sprite move.
Sorry if this is a really amateur question, the answer will probably be obvious but I'm in a jam.