Tutorial 2 - Spawn Cubes


#1

Hey there Mad Scientists!

Yesterday I was trying to do the 2nd tutorial and could not finish it because it was giving me an error.

It won’t accept this part :

4._do  //do the following block of code 4 times
  [       
  BP_Cube2.instances._do  //do the following block of code on all instances of BP_Cube2 objects in our level
    [
    race  //race the _rotate call with the _wait call; essentially rotating for 5 secs
      [
      item._rotate  //item refers to an instance of BP_Cube2
      _wait(5)
      ]    
    ]
  ]
]

I created all the previous members in the level2, created the BP for the cube and the subclass inside skookum.

The item._rotate is not being recognized or something similar…?

Here are some pics to show that, maybe you can figure it out my mistake:

snip_sk


#2

So I just noticed that in my IDE, I also get a red squiggle indicating that _rotate is unknown, when in fact it is not. The 2 questions to ask are:

  1. When you hit the compile button, do you get a green check-mark?
    image
  2. Are there any errors printed in the errors window of the :sk: ide?

If you can answer Yes and No then you are good to go, ignore that red squiggle while we fix things.


#3
  1. I have the green mark checking it did compile

  2. Then yes it did send some error and after i pressed retry/continue it stopped. I did not read the mistake, my bad :confused: !

It did spawn 3 cubes and is rotating the main cube a couple of times ( 4x i guess )

Rotating

So i believe it is working :slight_smile: !

Now I am just waiting for more in-depth game tutorials that work it basics like :

Movement ( Vectors, Rotation, Translation, Local and World ) etc.etc
Camera
Input Management? Like how to use input for in-game actions and events.
A.I?
Other important functionalities which I am not remembering right now :smiley: