Animating Images! (SpriteKit : Swift in Xcode)

  Рет қаралды 53,380

Jared Davidson

Jared Davidson

Күн бұрын

Пікірлер: 100
@AnonymousPiLover
@AnonymousPiLover 4 жыл бұрын
Thank god for a straightforward tutorial with good relevant information for regular people who know what coding is before getting into Xcode (even if Xcode itself is new) without an included spoon for those who have never touched a keyboard.
@zanekarl8391
@zanekarl8391 5 жыл бұрын
Hey @Jared Davidson, the functions have changed a bit since 2015 with "didMoveToView" becoming "didMove" with different parameters and "touchesBegan" disappearing completely in favor of a slew of functions that I assume just split up the functionality of touches began into all the possible peripherals that the user has access to. Is a way you might be able to update the video? Or maybe add an addendum to the dooblydoo explaining how the code would look in 2019? Thanks!
@danwoodbury8924
@danwoodbury8924 8 жыл бұрын
You're a very bright young man. Keep up the good work. Programming is an incredible outlet for various things in life!
@BishalSapkota
@BishalSapkota 9 жыл бұрын
Cheers! This helped a lot. And I like how straight up and concise you are.
@VeryBlueBot
@VeryBlueBot 4 жыл бұрын
dude... this is literally the only clear explanation on YT for Atlases for SpriteKit! thank you wasted so much time on this silly thing.. Crying from happiness now that I saw your video! Thank you, thank you thank you! PS: is there a reason there are no good (other then this one) tutorials for this in 2020??? testing out SpriteKit and kinda wondering if there is a point to invest more time into it.. Trying to do all things to avoid Unity for mobile 2D development :)
@TechEreb
@TechEreb 8 жыл бұрын
Hi Jared, I'm currently working on a basic side-scroller I'd like to keep building on, at this current point I'm having an issue with animation and I was wondering if you'd be able to help? I've got 3 different game states: start, playing and gameOver controlled by enums. At the moment I'm using repeatActionForever for my animation, which means that when it's gameOver the animation doesn't stop. Is there a way to make the animation stop when it's game over? The only lines I can see is either repeatAction with a count or repeatActionForever. Any help would be greatly apreciated :D
@tjsorensen1892
@tjsorensen1892 8 жыл бұрын
Man you done it again! Love the video, I feel like i search forever and get different answers none of which are in video form and then I finally come across a video like this one and say to myself Dang He makes this so simple I should have known to check with Jared first! I would also like to see how the atlas would work with @2 @3, thanks!
@caspiandamari1046
@caspiandamari1046 3 жыл бұрын
A tip: watch movies at flixzone. I've been using it for watching lots of of movies during the lockdown.
@briggstristan3724
@briggstristan3724 3 жыл бұрын
@Caspian Damari yea, I've been watching on flixzone for years myself :D
@tiffanylundquist3791
@tiffanylundquist3791 7 жыл бұрын
Nice. Very helpful for someone learning about textures and sprites. Did you leave out the last image, when you changed the starting index of your loop from 0 to 1. Should the for loop have gone to [].count + 1
@jojomojo8878
@jojomojo8878 8 жыл бұрын
Hey , I wonder if you can tell me how i can use Texture.Atlas to make a puzzle on the scene. I have a board located in my scene and I want to display all pieces of puzzles on that board but just can't think of how to arrange them on it. Any suggestion will be a treat.
@jeffwaters4818
@jeffwaters4818 7 жыл бұрын
What application did you use to create the images?
@manvsmonstertv
@manvsmonstertv 8 жыл бұрын
Loved your video, but I have a question. I want to navigate between separate view controllers that feature different animations. How to? thx
@smallcrowd
@smallcrowd 8 жыл бұрын
Can you additionally show how to make this .atlas @2 @3 as well? How to put it in .xsassets? Thanks in advance!
@jofodamofo
@jofodamofo 9 жыл бұрын
I love your videos dude! Keep it up
@Archetapp
@Archetapp 9 жыл бұрын
JOFO Will do! :)
@timhaiii730
@timhaiii730 7 жыл бұрын
Thanks for your Amazing tutorial Jared, and I have a simple question. At your last part, the UIkit, how to safely unwrap the imageNames[i] instead forcing it to unwrap?
@suki_channel
@suki_channel 6 жыл бұрын
What will MainGuy = SKSpriteNode(imageNemd: TextureAtlas.textureNames[0] as! String) get? Is it "win_1.png?" or a random image from the set?
@cargogas
@cargogas 9 жыл бұрын
great video ,, as any way to append the array with all images without having to type all the images names inside the array??.... thanks
@MaulikSutariya
@MaulikSutariya 9 жыл бұрын
great tutorials. each of your tutorial is helpful.
@Archetapp
@Archetapp 9 жыл бұрын
Maulik Sutariya Thanks for watching each tutorial! ;)
@MaulikSutariya
@MaulikSutariya 9 жыл бұрын
Yes, it's always good, learning something new. Keep it up.
@stephenbrigly1266
@stephenbrigly1266 8 жыл бұрын
Great series of videos! Can you do one on adding background music to app?
@helendorman8224
@helendorman8224 7 жыл бұрын
Hi Jared, this is my first attempt at an app and I’m using Non-SpriteKit. My code is laid out exactly the same as yours at 11.53, but using my own "......jpg" refs. I’m now trying to make the images fade slowly from one to another. Can you please tell me what code to use and where to put it in the table? Thanks.
@richardmason4873
@richardmason4873 8 жыл бұрын
Great video once again! One thing I am struggling with is how to get textures to work with physics. I have set up a flappy clone as shown in your flappy tutorial and I have set up an animated character using this tutorial but I don't know how to get the physics body to match the size of the current texture being drawn, and without all the textures colliding with other objects simultaneously (such as coins). Any help would be much appreciated! Thanks :)
@carolynstampeen1918
@carolynstampeen1918 8 жыл бұрын
Great job on this! If I have an image sequence with a lot of images, organized in its own folder, is there a shortcut alternative to manually adding in 40+ items?
@ChessCo.1
@ChessCo.1 6 жыл бұрын
This doesn't work for me, have they changed the swift code or does this code still work?
@joseantoniorezende1737
@joseantoniorezende1737 4 жыл бұрын
Good video!
@Beetle-2.7182
@Beetle-2.7182 7 жыл бұрын
I think you can use SKAction.animate(with textures: [SKTexture], timePerFrame sec: TimeInterval) and SKAction .repeatForever() to build the animation of your images, then let your sprite run it instead.
@brendanm6000
@brendanm6000 8 жыл бұрын
great videos. nice job starting your own company at your age- entrepreneurial knack.
@AliMohamed-jg6bv
@AliMohamed-jg6bv 6 жыл бұрын
hi... thanks for such amazing efforts how to make the animation stop after one full loop/movement? in other words i need to stop an image after a single full 360 degree loop, i don't need to keep it continuously rotating/looping. can u help me plz
@SnowWhiteTan1980
@SnowWhiteTan1980 9 жыл бұрын
Great tutorial! Is there any way to start the animation when you touch the screen when using the "normal" xcode animation?
@waynefilkins8394
@waynefilkins8394 9 жыл бұрын
Can you do this for a normal app? For like a button or image?
@JohnSmith-mo5sq
@JohnSmith-mo5sq 9 жыл бұрын
Dudeeee extremely helpful tutorials! thanks a lot
@sppanday_
@sppanday_ 9 жыл бұрын
thanks for your hard work
@emirsoyeder8082
@emirsoyeder8082 3 жыл бұрын
Version of your xcode?
@JimmyGunawanX
@JimmyGunawanX 7 жыл бұрын
Do you have video tutorial extending this to ARKit?
@eliasknudsen6639
@eliasknudsen6639 8 жыл бұрын
Hello Jared. Can you help me with applying an explosion animation when something collides. And the collision is at random position every time. Please help me
@shreyaspapinwar2745
@shreyaspapinwar2745 8 жыл бұрын
I have an error unexpectedly found nil while unwrapping an optional value - it's telling me that there is not value in images
@Boosted30v
@Boosted30v 9 жыл бұрын
How do you make an animated image in a project with multiple view controllers? Say I want one VC with animated images and the other VC's to have other animated or static images.
@adeadegoke4925
@adeadegoke4925 7 жыл бұрын
In the 'Non-SpriteKit' tutorial, Jared you do not show when you added the images to the project. I have followed the tutorial, doing exactly what you done, however I am getting this message in the console; 'fatal error: unexpectedly found nil while unwrapping an Optional value'
@Eliasmalaquias100
@Eliasmalaquias100 7 жыл бұрын
You'll notice that he has a folder called "supporting files". Make a similar folder and put your images in there. I had the same issue until I figured that out.
@adeadegoke4925
@adeadegoke4925 7 жыл бұрын
Elias Guerra thanks you
@kevinstevenson5293
@kevinstevenson5293 4 жыл бұрын
how do I animate a sequence of images and then stop?
@mariaionchenkova1173
@mariaionchenkova1173 8 жыл бұрын
You are very cool! Thanks!
@borbuh7256
@borbuh7256 9 жыл бұрын
I have a problem in simulator when i close app i can't access it anymore.
@thezue666
@thezue666 9 жыл бұрын
great video :) thank you Jared
@Archetapp
@Archetapp 9 жыл бұрын
Thanks for watching! :)
@miguelanjos1
@miguelanjos1 9 жыл бұрын
tx for the video. It loads but i do get a bad instruction: fatal error: unexpectedly found nil while unwrapping an Optional value (lldb) wud u have an idea what's wrrong? tx again!
@miguelanjos1
@miguelanjos1 9 жыл бұрын
+Miguel Anjos i added the .jpg for each pic. Now it runs!! tx so much i'll subscrube to get all ur tutorials!
@parkerbray4358
@parkerbray4358 2 жыл бұрын
great video. Im trying to learn how to create an animation with images in a SpriteKit view skview. If anyone knows where I could find help with that please comment where
@shreyaspapinwar2745
@shreyaspapinwar2745 8 жыл бұрын
Not working for swift 2.1
@Maetschll
@Maetschll 8 жыл бұрын
Great! implemented on mi next projects :) Thanks
@elbuenrobin
@elbuenrobin 9 жыл бұрын
Jared how could I contact u to talk about an app that I want you to develop?
@buie1692
@buie1692 8 жыл бұрын
Wheres a good resource for finding collections of images like these? Are there tools to convert sprite sheets to collections of images?
@gepettobaba
@gepettobaba 8 жыл бұрын
opengameart.org/
@Youngl3lood3
@Youngl3lood3 6 жыл бұрын
He is good. He gets a sub
@mozkau_gaming
@mozkau_gaming 9 жыл бұрын
Thanks it helped. Although it took time for me to figure out how to finish your loop:)
@ezay122
@ezay122 8 жыл бұрын
I have one error with MainGuy = SKSpriteNode(imageNamed: TextureAtlas.texture....) Invalid Request: requesting subtype without specifying idiom fatal error: Array index out of range Why :(
@VinGazoil
@VinGazoil 7 жыл бұрын
God! Use camelCase for your variable names…
@960Design
@960Design 7 жыл бұрын
the lack of camelCase and using var instead of let for assignments sets off my OCD, but nonetheless an excellent tutorial.
@LaklukLP
@LaklukLP 4 жыл бұрын
I cried multiple times. but great tutorial
@warmachine3071
@warmachine3071 7 жыл бұрын
How can i put it on for a certain amount of times, like loops?
@decreer4567
@decreer4567 6 жыл бұрын
a for loop
@TheAssassin74
@TheAssassin74 9 жыл бұрын
Can you go over multi touch next?
@Archetapp
@Archetapp 9 жыл бұрын
Soon. :)
@tqdolla
@tqdolla 8 жыл бұрын
I just need to know how do I learn to do all of this by myself
@J-PBrwck
@J-PBrwck 7 жыл бұрын
Thanks so much dude!
@Archetapp
@Archetapp 7 жыл бұрын
+Jean-Paul Berwick My pleasure dude! :D
@zolev14
@zolev14 7 жыл бұрын
How do we do this with @2x and @3x
@anhdungle01
@anhdungle01 8 жыл бұрын
I love your video :)
@OleRene
@OleRene 9 жыл бұрын
Thanks Jared. Great videos! Being Danish, it is a bit hard to follow your speedy speech. Would you please slow down a bit? Or perhaps breathe in between the sentences? Thanks again.
@friesja2571
@friesja2571 8 жыл бұрын
Thanks! This helped.
@Archetapp
@Archetapp 7 жыл бұрын
Glad I could help! :D
@gargyyyy
@gargyyyy 7 жыл бұрын
Don't forget use Clean function in Xcode :D
@SurendraKumar-si8lw
@SurendraKumar-si8lw 7 жыл бұрын
0:02 haha love that
@OrangeJuice-sb1bh
@OrangeJuice-sb1bh 9 жыл бұрын
Can you explain a little more.. I don't understand whats happening, I just see words i don't know what those words mean.
@Archetapp
@Archetapp 9 жыл бұрын
Orange Juice I'll try to explain a bit more, thanks for the tip! :)
@ZandorSmith
@ZandorSmith 9 жыл бұрын
Why not use for imageName in imageNames { Blablabla }
@Archetapp
@Archetapp 9 жыл бұрын
***** Then you couldn't control how fast the images scroll through. :)
@ZandorSmith
@ZandorSmith 9 жыл бұрын
Jared Davidson Wut? That doesn't make sense to me. (I'm talking about the code at 10:50)
@Archetapp
@Archetapp 9 жыл бұрын
+Zandor Smith oh, sorry! I completely just wrote that comment without looking at the video. You can definitely do it your way, just did it a way that I was familiar with. :)
@jonathansuarez7464
@jonathansuarez7464 2 жыл бұрын
I subscribed you!
@notorioustofu3482
@notorioustofu3482 9 жыл бұрын
I keep reading the title "! Animating Images" as "not animating images"
@Archetapp
@Archetapp 9 жыл бұрын
D. Greg Haha, that would be a boring video. ;)
@DarylNotDead
@DarylNotDead 8 жыл бұрын
👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻
@barnabuswizardspook
@barnabuswizardspook 7 жыл бұрын
hello, arizona mormon ;)
@Archetapp
@Archetapp 7 жыл бұрын
+Andrew Burns Not in Arizona, but I am Mormon! ;)
@ArbelFS3
@ArbelFS3 9 жыл бұрын
Can you do a video series about core graphics? Its a huge subject and no one on youtube made a fully explaining video or video series about this subject, it would be great if you can make one and I am sure it will help a lot of people, (Especially me :D) Core graphics are hard, by the way, this is the only updated and working CG guide I found on the web, even though it is not well explained(in my opinion)... www.raywenderlich.com/90690/modern-core-graphics-with-swift-part-1
@Archetapp
@Archetapp 9 жыл бұрын
Ten Box I can look into it. :)
@ArbelFS3
@ArbelFS3 9 жыл бұрын
:D
@Fijiannnn
@Fijiannnn 7 жыл бұрын
This does not make my image animate at all.
@alexanderschafer1174
@alexanderschafer1174 8 жыл бұрын
Open parenthesieeees CLOSE parenthesieeeeees Dude, we know when or not to write parenthesis or quotation marks -.- Helpful videos anyway
@Archetapp
@Archetapp 8 жыл бұрын
The way I see it, if people are watching 240p or lower, it's really hard to tell what I'm typing, so I say exactly what I'm typing. :)
@alexanderschafer1174
@alexanderschafer1174 8 жыл бұрын
+Jared Davidson (Archetapp) Well, when being in a situation where you can copy your code you will also have the ability to watch the video in a better quality than 240p or lower (who is doing this anyway??). For me (and i bet for much other people) this is just annyoing while wanting to learn the actual lesson ;)
@Archetapp
@Archetapp 8 жыл бұрын
+Alexander Schäfer I get quite a bit of viewers from India and South Africa, where internet speeds are terrible. I have to watch videos in 360p, and I live in the US... When watching at 240 or even 360p, it's sometimes hard to tell if its a bracket or parenthesis. In my latest videos, I've tried to just say "open close parenthesis." as to tone it down a bit... Hopefully that's good enough. Thanks for the suggestion! :)
Creating Spit Spot! (Collisions : SpriteKit : Swift in Xcode)
17:39
Jared Davidson
Рет қаралды 10 М.
Making a Slide Out Menu (Swift in Xcode : SWRevealViewController)
24:50
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 25 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 66 МЛН
Make Flappy Bird! (Pt. 1 : Swift 2 in Xcode : SpriteKit)
20:36
Jared Davidson
Рет қаралды 160 М.
Circular Transitions! (Swift in Xcode)
11:11
Jared Davidson
Рет қаралды 18 М.
Ch. 1.11 Adding Your Own Images to Your SwiftUI App (You Are Awesome app)
9:37
Prof. John Gallaugher
Рет қаралды 2,5 М.
Introduction to SpriteKit
10:27
DesignCode
Рет қаралды 109 М.
The Vim Experience
45:19
Bog
Рет қаралды 139 М.
Space-Filling Aether Theory Makes Comeback
8:24
Sabine Hossenfelder
Рет қаралды 98 М.
Collection View Animations! (Swift in Xcode)
23:21
Jared Davidson
Рет қаралды 46 М.
iOS Swift Tutorial: Add Game Animations to your App
28:32
Brian Advent
Рет қаралды 17 М.
Make your own 2D Shooter - SpriteKit Tutorial
9:38
gebirgsbärbel
Рет қаралды 1,4 М.
Working with JSON! (Swift in Xcode)
20:45
Jared Davidson
Рет қаралды 77 М.
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН