Look at their video FIRST !!! To discover the concept and to learn some tricks : drag and drop slots, copy-paste slots,…
On my first video here, you can learn how to move a spaceship in 4 directions for a game on the side view : (I use the free cartoon spacecraft from the assets store.)
TIPS :
Select “Transform” for the public slot in the inspector because we will change the Transform position !
Use the 4 arrows of the keyboard to move the spaceship ! We have to change the z value to go to the left or the right (and not the x value) because we have rotated the spaceship y = 90 !
Just kidding, that is amazing. This is the kind of thing I was looking for when I was very bad at the logic of game stuff. This allows you to build your logic without problem. Amazing job. I like it .
Your example make use of Vector3 , so a user should know that for moving up he needs to enable the y component of the vector. Not quite without coding eh ?
@ scarpelius : You’re right ! Vector3 isn’t a simple thing for new users…
@ MrBurns : :):) It’s why I can use it !!!
@ Martin : I’d prefer you add a “comments” flat slot ! So I could add comments to the slots I create directly in your editor ! Is it possible ?
Not only for tutorials but for users. it’s important to be able to add some notes when we create games.
when I record my videos I use Quicktime on Mac. If I try to import my quicktime file on Youtube it will have no sound. That’s why I switched over to Vimeo. In the past I had to convert my Quicktime video with iMovie before uploading to Youtube. If you want to save yourself some Aggravation. You can do what I did.
Here is my second video :
We will learn to shoot an object (missile) to the right with the B key. Each missile will be destroyed after 3 seconds.
Comments :
I use a simple stretched sphere for the missile (Here as Transform) ! So everybody can do it… I translate the sphere to the right (Vector3 = direction here !). We will add material later, in a next video.
I use an empty object (without collider) for the missile launcher instead of shooting from the spaceship to avoid collisions between the ship and the missiles.
I instantiate (= create) an object (missile ! Here as Gameobject !) from the position of the missile launcher (not the ship) and without rotation in the world (= Quaternion identity)
With object1 is object2 (builtin), I create and will destroy missile clone and not the original missile only. You can change the delay for the destruction… I have used 3 seconds.
Just rename object1 by typing what you want. To drag and drop the “newmissile” into the destroy block, just Shift+Ctrl+Drag it with the mouse. Don’t forget to “glue” the destroy block to the instantiate block to bound the variable “newmissile”.