|
|
@@ -354,7 +354,8 @@ Modify the code sample to solve these exercises:
|
|
|
|
|
|
=== Exercise 1: Magic Spell
|
|
|
|
|
|
-Change the color of the closest clicked target! +Here are some tips:
|
|
|
+Change the color of the closest clicked target! +
|
|
|
+Here are some tips:
|
|
|
|
|
|
. Go to the line where the closest target is indentified, and add your changes after that.
|
|
|
. To change an object's color, you must first know its Geometry. Identify the node by identifying the target's name.
|
|
|
@@ -388,7 +389,7 @@ Change the code as follows to simulate the player picking up objects into the in
|
|
|
|
|
|
[IMPORTANT]
|
|
|
====
|
|
|
-Link to user-proposed solutions: <<jm3/solutions#,jm3:solutions>>
|
|
|
+Link to user-proposed solutions: <<jm3/solutions#,jm3:solutions>> +
|
|
|
+++<u>Be sure to try to solve them for yourself first!</u>+++
|
|
|
====
|
|
|
|
|
|
@@ -404,6 +405,7 @@ Use your imagination from here:
|
|
|
* In your game, you could replace the red mark with a particle emitter, add an explosion effect, play a sound, calculate the new score after each hit depending on what was hit – etc.
|
|
|
|
|
|
Now, wouldn't it be nice if those targets and the floor were solid objects and you could walk around between them? Let's continue to learn about <<jme3/beginner/hello_collision#,Collision Detection>>.
|
|
|
+
|
|
|
'''
|
|
|
|
|
|
See also:
|