Unity Web Player | AdventureBoy
DM4331 Effects For Games
Wednesday, August 8, 2012
Monday, August 6, 2012
Assignment A (Final Effects)
Finally.. my 3 effects are completed as follow..
1. Animated Lights from Day to Night
2. Sweating while running, jumping and still
3. Score +1 Appeared Floating when a coin was collected
Sunday, July 29, 2012
Assignment A (WIP10)
Created Sweating effect on character:
I decided not to use the spiky effects that I wanted to create when jumping as it will clashed with the dust effect. So I changed to create sweating effect on the character. When the character is always running and jumping, he will be sweating.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJ7fd8scWGl6RN30Xrdzcs2NeBaygrS3PJ094c_DoGCfM5vFIBvpg-fqHisH3aVRFEKNk-RCozrGaiig0YBb-zV1JtlL7dT_rGsAPSJNycJUJ2RYuO0bdj7cyA4AOQ1KoGuolObTuoIY/s320/Screen+Shot+2012-07-30+at+10.38.33+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHmTVslh420dcjnXmHsefqO8ZHf_pJpaZs88tL-zYKB85q7nYduxiMpAb5gy2kXOalXYJrJEK28EERcZ6vXOmKq7RY3-ESBZgE4KXTdRqqolhixVFwBNxBYHV-u6vImhekZa6kYnifEXM/s320/Screen+Shot+2012-07-30+at+10.38.47+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRSSSlHXkQ_hca_agRQFMyTdKSO5p2Iy9xwqtLad-hOSt4sVa7vDlS7XCSRiPzsZfdYTEpOCExGdAUbOL_fehkFin6wlrDYFztexxRZeCtyoRe-P9oD2NcDxgaUQD0j1fKEfGr1l5r8Y/s320/Screen+Shot+2012-07-30+at+10.45.01+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipE-PqcmqF3isy_JrwmXCryxkhcpKxAA4k32WGiYktaMUaAwtp8m1wb0L6TyZBV-XvkWKjunbZ3on7usiDMKgptIeGguvZyBHyI0G7mhkwhjF1076E9OpscZzk4ADK1GBgNLnOUmO_XhE/s320/Screen+Shot+2012-07-30+at+11.49.37+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Hf3t_yZ2TS2rlX74eLLMcldZ4bjG8YR1e_6n_GcCOuq-mYo0jgBFHg65L-b1Q85khD-sxk9XkqsrTiCYJWbDIQ7_-36WPzfIqtAKf-WKiYRNXg-t9-c3tYr3CItrDD6iTVwZ2zfoMwA/s320/Screen+Shot+2012-07-30+at+11.48.06+PM.png)
I decided not to use the spiky effects that I wanted to create when jumping as it will clashed with the dust effect. So I changed to create sweating effect on the character. When the character is always running and jumping, he will be sweating.
I did it almost the same way. By adding Ellipsoid Particle Emitter, Particle Animator, Particle Renderer and Particle Texture and tweaked the values.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJ7fd8scWGl6RN30Xrdzcs2NeBaygrS3PJ094c_DoGCfM5vFIBvpg-fqHisH3aVRFEKNk-RCozrGaiig0YBb-zV1JtlL7dT_rGsAPSJNycJUJ2RYuO0bdj7cyA4AOQ1KoGuolObTuoIY/s320/Screen+Shot+2012-07-30+at+10.38.33+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHmTVslh420dcjnXmHsefqO8ZHf_pJpaZs88tL-zYKB85q7nYduxiMpAb5gy2kXOalXYJrJEK28EERcZ6vXOmKq7RY3-ESBZgE4KXTdRqqolhixVFwBNxBYHV-u6vImhekZa6kYnifEXM/s320/Screen+Shot+2012-07-30+at+10.38.47+PM.png)
Results:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRSSSlHXkQ_hca_agRQFMyTdKSO5p2Iy9xwqtLad-hOSt4sVa7vDlS7XCSRiPzsZfdYTEpOCExGdAUbOL_fehkFin6wlrDYFztexxRZeCtyoRe-P9oD2NcDxgaUQD0j1fKEfGr1l5r8Y/s320/Screen+Shot+2012-07-30+at+10.45.01+PM.png)
Merging/Adding the animation layers:
I merge and edit the move script for the animations. So when the player is not pressing any keys, the character will stay still. When the player press the forward and backward keys(up & down arrows), the character runs. Lastly when the player press on the jump key(space bar), the character will jump.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipE-PqcmqF3isy_JrwmXCryxkhcpKxAA4k32WGiYktaMUaAwtp8m1wb0L6TyZBV-XvkWKjunbZ3on7usiDMKgptIeGguvZyBHyI0G7mhkwhjF1076E9OpscZzk4ADK1GBgNLnOUmO_XhE/s320/Screen+Shot+2012-07-30+at+11.49.37+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Hf3t_yZ2TS2rlX74eLLMcldZ4bjG8YR1e_6n_GcCOuq-mYo0jgBFHg65L-b1Q85khD-sxk9XkqsrTiCYJWbDIQ7_-36WPzfIqtAKf-WKiYRNXg-t9-c3tYr3CItrDD6iTVwZ2zfoMwA/s320/Screen+Shot+2012-07-30+at+11.48.06+PM.png)
Results:
To be see in game.
Monday, July 23, 2012
Assignment A (WIP09)
Creating Spiky Effect When Jumps
Followed a tutorial online and got to know about "Ellipsoid Particle Emitter" and "Particle Animator". With these I have more controls to create the particle effects I want. Firstly I tried placing the particles near the foot area hoping to create a spiky effect when it jumps.Particles settings
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Eas9ow-L54xdKVtETL-LlL9O1MDepVuZ7Wzu3Nh5UR3PwFxbQGK1IshzEzWoacfhEH0hAxy7RYy7dbTKoFt7vgXjNwNKAxXCxYGmlx4PhWMVPdBwwlijwz57Q-oIwgcNQP8S7xMBlDA/s320/Screen+Shot+2012-07-23+at+1.57.16+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGN6rrRQegHHrIE6EZYZRLvd-M6KHw9d23lCgWoUly_cNCyRb96HKuhOKTldSpKNIql5-2DgmEa13NffaXVwpPi2rEvREneQ0pUKiiuqHXm6N1vYD2CA3UAJ-tY-_zHWSQ3-7Fnd8n_p8/s320/Screen+Shot+2012-07-23+at+1.57.40+AM.png)
I also edited my move script so that my particles will be created when the player hits the jump key. However, I was unable to off the actual particle emitter, so it was following my player through out. This is a problem I faced.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6RP1PRI7IzLE3ZBcre0wHwPRBoXl-8HpulGdA5ZsV3MiguBkduX0YtknR-cddV62tBPcA8R1TRITS_BwAO0uTbXFsZsEQY_Zq9nL2-sj1iUSMDzjjr3KDCBSg9DOBCEEB9rvmDhhF-yY/s320/Screen+Shot+2012-07-23+at+1.58.45+AM.png)
I am still tweaking and hoping to find a better texture/color for the spiky effect. But these are the results for now..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1lTdTRG6kxVJO6V7Xm7aWf5tpciHmECmW9cmCodrluQL9ArdIzM9Lqt-1E8AgyUmoV-vFc_rC36QNn8BX-SeLy617AFKONETu__7OTPASr04MnFO59GNlKNZo7hRvt-T0QfhjEmJAAXQ/s320/Screen+Shot+2012-07-23+at+2.02.19+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnq8hHFL-VIGguDeWkl079gLVczp3wkslF2qPA3wJEk_Vd2fC90q1ASJBsQAxgVtWNqlp7gl9ru7l3NAnTfEsqYvq0OyQJkHKH2iokMbmTGK7yNnyUUe3U7vXIVlmv5v8UElueSIxcwYY/s320/Screen+Shot+2012-07-23+at+2.02.46+AM.png)
Sunday, July 15, 2012
Assignment A (WIP08)
Creating Particle Effects When Jumps
I want to create some particle effects around the character when it jumps.So I created particle system and added codes to my move script. This will make sure that the particles for the jump only appears when the player hit the jump key, in our case is the spacebar key.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJwkgAh12XkRLWFUnZEnWFGlztukuokpV7aSfg-Q03xlax1dchz2JgTHhrfZryJl_bAog2Riuts9b5xLruDUK3T-QLl6dRh-kEUWeDwGm5Ry8MewepP5n9OGDxxZSwPvYEmco3RZop03M/s320/Screen+Shot+2012-07-16+at+10.13.42+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRrcU4ouVdyL0MWao7NXMySjOmE1mSNkRwlzEqi8pmjsaG8F0GYqaIB48zivWabAwTsZfR9f7luJxqx25-jMsS6FTzhJKmNlIRxRqx5j8CDaswTAYxCki6r7lvOQqW5SGAcfato4d_bUU/s320/Screen+Shot+2012-07-16+at+10.14.49+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmvRWLf23CXjPguaiX-UMsvp_PLX9PAzqHI0H0Jczz59qtGk7nN_jXO2bdAZN-yp0IWjerG8mNkU1gRPjybQii0iend8hz4Z7qtFXGqYNgapDOL2lIyuzbHNL_zG9ZK9L-qwdiH41YjjY/s320/Screen+Shot+2012-07-16+at+10.14.05+AM.png)
Results:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi93Wa2iPaXRp1gHRs1b65F2oYIEnOZa8vb4bwNtZqSqtkK1erUlO34lDkq6d_kxLDpbKK2hvjjq2fNMU2aJrU2t8YOybOeHTCzevuw2VfMRCM_hG2spRfAdGZbv2nY1UJzz1m4Kx0dh-8/s320/Screen+Shot+2012-07-16+at+10.12.54+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBhfT7V4-Gu_0zDN1Atk_VlHSd3brxWTvIutZZWq73IkJrBpZ30J-RzB7rI3gw_kQeyjIFOuLg7DOmwAwpcHvOWw3yym655eJPYGhUa5OLCdcJeE91p3AmEjwW1ri_39BynuCyJFlaHdo/s320/Screen+Shot+2012-07-16+at+10.12.58+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhznJNfYp5EW6i_xWq9M1cPk_5LH66YrGLf21yqysV2bEH4Xbk6VGY1SaYPFDOUYezD2zyEN8QScg1AwWPy2e5d0o8Af4FvdfVqJuoMobb7yfEuCFcwqRlK5zIzWw5HtbyJpslR4FfW2sc/s320/Screen+Shot+2012-07-16+at+10.13.09+AM.png)
However there is a problem where I cant make the particle disappears and they all stayed right at the places the character jumps, which is weird. So I am still figuring ways to somewhat destroys them.
Monday, July 9, 2012
Assignment A (WIP07)
Solving Problem of Slow Start-up
Turned on each of our objects one by one to find out what causes the problem of loading too long when starting up. The problem was because of the machine gun. Therefore I went to find another model and texture it again. Problem was solved! Now we do not have to wait for so long for it to start up!
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNJIT0onKfXPQ4lzoAX44nXNTCSBrzkzfd4FNzvYm7lqso1SYg1vsJyXQRC2hiNiL543o4YIwOuAPFyu0WxK4vSshI5asCS0sh6sFRuj7wa0X7nOrCJpJ4S2HFTtN1pfxfaEkqJlHdmv0/s320/Screen+Shot+2012-07-09+at+1.21.07+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqQGPdh0FxfBjz8yhnPlB3XYI0OKU_YhjiGVoVSJmRINbe-tX13nNKWfUQQY4jpoMWO9Hj4YNSo0CK6ho-Ax4rz1pwqjcodsv2NK9guOUAz5ZH3Fpa5QsyXttaN09cm35HgO_oVjMLknQ/s320/Screen+Shot+2012-07-09+at+12.01.16+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszqaqGV4XZfglyOx3enUlioB-28spIVBFv56rDNQfZI8cgyhfmxK5xPalOKl7Q6Q_S2q5JttfLJ88oBXWRSoQligq8erB-rWAsM-gYRz892Xa4M4YGfx7HE59fNZS9k-ZO3ic8s3SrBQ/s320/Screen+Shot+2012-07-09+at+12.00.18+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNPTaunYfWfOEN6E-HT9lBzSq34aErYcpGqhQUFx48V3MGXdhlK2KFgAPMndY64cqopDmqLfTSpfbYGFobkB8PYI9nEOvTalrofufRzOV4UlOKzQVAW__LrO6mUC8tZdhKWqxi9UvUXNU/s320/Screen+Shot+2012-07-09+at+12.01.35+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsJbaN7vi1LaQyCcuY-uqJCxfcrNnAOoCWqTzmrkfpE35G3MWj-hnv6zhz9jVF65lPuN7FPonif6dzErzYxjfVssQXdQ0Wdzr3tzpL5wjrHaZibEeKI6deWQledXD0cDE16K3lfaIOErU/s320/Screen+Shot+2012-07-09+at+12.00.37+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKYpIiHGOdaMH6m6fvXri0C2CUdnzl4K62GfUN-x51AQWVzUKqL1vHjAQ_TftuZoolvmOnDzqLZAPBQp-bN_PvalBVzwxKoF7OulaOmNDq6UxX-0Y47eNgxRH0RO6n4ZsgXEfgcpMBpiU/s320/Screen+Shot+2012-07-08+at+11.56.04+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSlsa83IlDQpwG5JgRR8m3wRLlP_zjs8nyCutjg3bD9h03k1IPuFqJAqNbfDjKJOypcIzB2Jfa0j-do6daUKlkZJHIaordekGmLVbRKzZ4qbWT3II1FgGhxcyeXlvdZuRewF_Iw2RSzkM/s320/Screen+Shot+2012-07-08+at+11.56.52+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQTQzSDYnr1aXNEphSXv1XTkUzvY1oj9omPUcMwTtzim0aCyGT3MOD5wMRxs15lUyeiTOIizpxxePeBGm3O8QaS_bR8oeVuLZJJkXWwgYQBLD5hrhW5k1gj0yF2tVOvx-YBf4dTi4OJT0/s320/Screen+Shot+2012-07-08+at+11.56.58+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvVd4z4zU9LBJnDh3IAuTpL15uyf_Cc_dPjs3YH_SzWLaLgAwkVsJ6T4cUKPNyXZhl-EtJVX1JMBF2Mx-NVAbkDgMi_EAq4_oYHG2XCZLe6Wl6NcJ5XuV0RPQlXrvbDLnI0JNoOuA2l7g/s320/Screen+Shot+2012-07-08+at+8.26.30+PM.png)
Turned on each of our objects one by one to find out what causes the problem of loading too long when starting up. The problem was because of the machine gun. Therefore I went to find another model and texture it again. Problem was solved! Now we do not have to wait for so long for it to start up!
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNJIT0onKfXPQ4lzoAX44nXNTCSBrzkzfd4FNzvYm7lqso1SYg1vsJyXQRC2hiNiL543o4YIwOuAPFyu0WxK4vSshI5asCS0sh6sFRuj7wa0X7nOrCJpJ4S2HFTtN1pfxfaEkqJlHdmv0/s320/Screen+Shot+2012-07-09+at+1.21.07+AM.png)
Creating Light Animation
We want the lighting to decrease as half of the time passes to increase the difficulties of the player to collect the coins. Therefore, I research tutorials and follow some ways to animate the lighting of my scene. After hours of trying, I was about to get what I wanted.Firstly I added a script, calling it "DayToNight", this is to get the light(sunlight), camera and the day and night materials.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqQGPdh0FxfBjz8yhnPlB3XYI0OKU_YhjiGVoVSJmRINbe-tX13nNKWfUQQY4jpoMWO9Hj4YNSo0CK6ho-Ax4rz1pwqjcodsv2NK9guOUAz5ZH3Fpa5QsyXttaN09cm35HgO_oVjMLknQ/s320/Screen+Shot+2012-07-09+at+12.01.16+AM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszqaqGV4XZfglyOx3enUlioB-28spIVBFv56rDNQfZI8cgyhfmxK5xPalOKl7Q6Q_S2q5JttfLJ88oBXWRSoQligq8erB-rWAsM-gYRz892Xa4M4YGfx7HE59fNZS9k-ZO3ic8s3SrBQ/s320/Screen+Shot+2012-07-09+at+12.00.18+AM.png)
Then I added a "Changing" script, this is to create the moment change between the day and night.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNPTaunYfWfOEN6E-HT9lBzSq34aErYcpGqhQUFx48V3MGXdhlK2KFgAPMndY64cqopDmqLfTSpfbYGFobkB8PYI9nEOvTalrofufRzOV4UlOKzQVAW__LrO6mUC8tZdhKWqxi9UvUXNU/s320/Screen+Shot+2012-07-09+at+12.01.35+AM.png)
I was having problems after I am down following the steps as my scene gets way too bright and was not dark enough when it comes to night, also the time when it turns dark is way too fast, like at right at the start of the game, it starts to get dark, which are not what I wanted.
After some tries, I am able to solve the problem by tweaking the Ambient Light in the Render Settings darker so my scene will go even darker when comes to night time. As for the time, I am able to tweak the range value of my light to about 2800 and the environment only turns darker after my time passes half.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsJbaN7vi1LaQyCcuY-uqJCxfcrNnAOoCWqTzmrkfpE35G3MWj-hnv6zhz9jVF65lPuN7FPonif6dzErzYxjfVssQXdQ0Wdzr3tzpL5wjrHaZibEeKI6deWQledXD0cDE16K3lfaIOErU/s320/Screen+Shot+2012-07-09+at+12.00.37+AM.png)
Result:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKYpIiHGOdaMH6m6fvXri0C2CUdnzl4K62GfUN-x51AQWVzUKqL1vHjAQ_TftuZoolvmOnDzqLZAPBQp-bN_PvalBVzwxKoF7OulaOmNDq6UxX-0Y47eNgxRH0RO6n4ZsgXEfgcpMBpiU/s320/Screen+Shot+2012-07-08+at+11.56.04+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSlsa83IlDQpwG5JgRR8m3wRLlP_zjs8nyCutjg3bD9h03k1IPuFqJAqNbfDjKJOypcIzB2Jfa0j-do6daUKlkZJHIaordekGmLVbRKzZ4qbWT3II1FgGhxcyeXlvdZuRewF_Iw2RSzkM/s320/Screen+Shot+2012-07-08+at+11.56.52+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQTQzSDYnr1aXNEphSXv1XTkUzvY1oj9omPUcMwTtzim0aCyGT3MOD5wMRxs15lUyeiTOIizpxxePeBGm3O8QaS_bR8oeVuLZJJkXWwgYQBLD5hrhW5k1gj0yF2tVOvx-YBf4dTi4OJT0/s320/Screen+Shot+2012-07-08+at+11.56.58+PM.png)
Creating Alert Sign
I tried to create an alert sign when my character gets closer to the guns. I found a way which is using the Distance in the script to count and locate the distance between objects. I also want to add a GUITexture. However after much tries, there are still errors that I do not know how to solve.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvVd4z4zU9LBJnDh3IAuTpL15uyf_Cc_dPjs3YH_SzWLaLgAwkVsJ6T4cUKPNyXZhl-EtJVX1JMBF2Mx-NVAbkDgMi_EAq4_oYHG2XCZLe6Wl6NcJ5XuV0RPQlXrvbDLnI0JNoOuA2l7g/s320/Screen+Shot+2012-07-08+at+8.26.30+PM.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpJj9MdOCYmm6TeAEfErBikq6wrJniMNkNY6CM3GZookWPWxObfCcb-lhrZy2BQqrQngEqMuR0VS4VRutwEAZ9FbYrmoluPUR65nMIhZcN05Iyig8aIUjudigTgAq6JfiLy6Y1NVRDraE/s320/Screen+Shot+2012-07-09+at+1.29.11+AM.png)
Monday, June 25, 2012
Assignment A (WIP06) Effects
We came out with ideas on what effects to have in our game.
So for me, I will be doing..
1. Create effects on the foot when it jumps.
2. Create a alert effect when the character gets closer to the guns.
3. Animate the surrounding lighting darker when the light decreases.
The alert effect could be something like this and will be glowing..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghF0OzlnLRR1CYxXdSfnz6i59FyBTb5TjUwpjZersVcby-vmKktL3_F0tJ8vZQASsfZm9ZHA_YpsCWQCaGTUPnBfzIyMeTglB4rPe19VrPVvUnwkxO7xmItKpZcpGlD_E3RkWzNBegO_4/s320/sign_alert_alarm_arrow.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghF0OzlnLRR1CYxXdSfnz6i59FyBTb5TjUwpjZersVcby-vmKktL3_F0tJ8vZQASsfZm9ZHA_YpsCWQCaGTUPnBfzIyMeTglB4rPe19VrPVvUnwkxO7xmItKpZcpGlD_E3RkWzNBegO_4/s320/sign_alert_alarm_arrow.png)
Subscribe to:
Posts (Atom)