I got some error while trying it: "the name 'player' does not exist in the current context." and "the name 'respawnPoint' does not exist in the current context." . How do I fix these issues?
@perbara1991Күн бұрын
The code does work for it's main jump functionality, though it comes at a cost of making your player a professional wall jumper, so i honestly recommend another line of code.
@qualaycalvin-rn5lp2 күн бұрын
I'm using unity's input systems for my jump how can i adapt this
@Tobawa26013 күн бұрын
Something that I found really helpful was to delete the tiles that are in the preview-image on the right of the provided file. That way the selection isn't as bloated and you can better find the right tiles and also don't accidentally use a preview-file, which have a blue background. Additionally I found it really helpful to name the tiles, which is also done in the Sprite-Editor when selecting a tile on the bottom right. It's easier to find the right tile and they are sorted alphabetically. Anyway, thanks Blakeyyy for the nice tutorial!
@Syneation7 күн бұрын
thanks :D
@thediamondgauntlet88887 күн бұрын
what if there's point C?
@jjopilis66348 күн бұрын
I’m having issues with the object the bullets fire from actually following my player? It just stays still even though it’s a child of the object, can anyone help me because I’d love to try to get more work done
@theboredbraxton69008 күн бұрын
Thanks for the video Blakeyyy! However when I play the game, clicking right click only spawns in bullets, they don’t go forward at all, any ideas why? Once again thanks for the video!
@Blinkski29 күн бұрын
Love the tutorial! How do I use the Vignette or get that for the game?
@DragonEditz999811 күн бұрын
if your having trouble with the jump mechanic, try changing rb.velocity.x to rb.velocity.y
@jjopilis663411 күн бұрын
Thank you so much for this tutorial it will be extremely helpful for developing the game I'm in the midst of working on
@chelchkik12 күн бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { public GameObject player; public float speed; private float distance; public float distanceBetween; void Start() { } void Update() { distance = Vector2.Distance(transform.position, player.transform.position); Vector2 direction = player.transform.position - transform.position; direction.Normalize(); float angle = Mathf.Atan2(direction.y, direction.x) * Mathf.Rad2Deg; if (distance > distanceBetween) { transform.position = Vector2.MoveTowards(this.transform.position, player.transform.position, speed * Time.deltaTime); transform.rotation = Quaternion.Euler(Vector3.forward * angle); } } }
@CosmicBacon09 күн бұрын
THANK YOU SO SO SO SO SO SO MUCH YOU SAVED MY LIFE
@Blinkski214 күн бұрын
after trial and error this tutorial helped me thank goodness i almost gave up
@yayantar15 күн бұрын
Thanks !
@ProyectoUnity17 күн бұрын
i did everything exactly the same but im still double jumping?
@sessizinsan111118 күн бұрын
Is it possible to collider and raycast at the same time?
@Tecrispi19 күн бұрын
I'm trying to add bullet spread/inaccuracy for a bit of randomisation when you shoot (the direction the bullet goes) but I can't figure out how?
@PerfectVV20 күн бұрын
this helped me so much
@davidpepice20 күн бұрын
simplemente genial master!!!!
@fezik769721 күн бұрын
thank you man so much
@O5rrrk22 күн бұрын
Jesus man. I just found your video. It's amazing how great it works :D Thanks for that man! I definitely come here more often xd <3
@mileselectric367723 күн бұрын
hello i aleady have a death script and the checkpoint script you made in another vid, what i need help with is accessing the respawn script after death animation plays instead of resetting the whole scene. as the game im making doesnt require a hard reset after death.
@peanutbuttergaming332924 күн бұрын
this sucked, i didnt understand a thing. i dont want to pay for a software just to make a tilemap. absolute ass.
@CrumblingCrumbler25 күн бұрын
Once I flipped it it broke the whole code send help
@HaydnGable26 күн бұрын
After scouring the internet for hours looking for this solution, this tutorial is the only thing I found that actually worked.
28 күн бұрын
Is it possible for enemy ai to be drawn to multiple players? What would the code look like?
@pba459128 күн бұрын
this tutorial is goated bro he definently deserves way more views and subscribers for these high quality videos
@OwenRussell-rr1st29 күн бұрын
Thanks so much! A wonderful help.
@jeckup994329 күн бұрын
In your example the player movement is very responsive and snappy but in my project the player will continue to drift/move after letting go or changing directions how do I fix this?
@VarunAiyarАй бұрын
Thank you very much!
@SAITAMAgotTHeWАй бұрын
i dont want flappy bird
@phanha9632Ай бұрын
why your square does not drop down while mine keep dropping down ?
@Blinkski215 күн бұрын
I think that is because you forgot to add a box collider 2d on the platform that way the square collides and doesn’t fall
@terza1458Ай бұрын
Thank you!
@jellybob999Ай бұрын
BRO THANKS SO MUCH, I COULD NOT GET THIS TO WORK FOR THE LIFE OF ME!!!
@FawfulRoxАй бұрын
Great tutorial
@juicycollin3279Ай бұрын
forgot the capital P on CompareTag("Player") took me 30 minutes to find it
@Rayoski321Ай бұрын
the best tutorials
@ThatLoserTylerАй бұрын
Followed this 100% at least 3 times looking for any errors on my part but everytime I use this the object (cube) slowly drifts towards me when I start walking after I pick it up. Like its not completely locked into place? Any help?
@drrkwolfАй бұрын
Tile doesnt appear on game for me
@abingdonsoftworks2200Ай бұрын
If you were having trouble with animations and y velocities. You can see if the abstract of the wave velocity is less than 0.001.
@user-mf9tp7qs4tАй бұрын
for me it just barley jumps and then when i increase the jump power it just teleports the square into the sky
@mincraftplayer68-in4mwАй бұрын
I got Soo much errors 43 errors
@hggpiАй бұрын
question about the distance or the movetowards.i dont know tbh basically if i want the whole thing to be on X axis only and i dotn want to use rigidbody to solve it. Can i do it somehow? Also the if statement wont really work in a 2d platformer style game from my experience because the Y axis is equal and the transform.pos has 2 axises right. So how do iput the whole thing on X i tried looking around on forums but i didnt really find an answer.
@onlyrxtro7059Ай бұрын
Is it a way to make it to where only I can pick it up and nobody else able to touch it even when I drop it
@jumpknight6944Ай бұрын
You saved my presentation, Thanks From Brazil!
@gsc8902Ай бұрын
Tutorial is good info but imo your talking far too fast for beginners.