Posts

Showing posts with the label free

Unity3D: Camera Shake Effect with C# Example

One of my unfinished Unity3D game projects required camera shaking function, so I wrote one from scratch. I just needed a script that shakes camera for a certain time and magnitude, and can be called from other script. Also, sometimes it would be useful to trigger this from UI button using OnClick(). Added 9.10.2018: This script is now available also at GitHub: https://github.com/jliias/CommonUnityScripts/blob/master/CameraScripts/ShakeCamera.cs Please find script below: Script is added as a script component to the Camera type object and then it should be ready for use. You just have to figure out how and when to trigger it in your own game. I hope that someone will find this script snippet useful! -Jussi

Monty Hall Problem Simulator

Image
Have you ever heard abut Monty Hall Problem? Basically, it is kind of a brain teaser that has been named according to the host of the television game show called "Let's Make a Deal". The starting point for this matter is the situation where there are three closed doors in front of you. Behind one door is a grand prize (money, car, whatever), and behind other two doors there is something less desirable (nothing, goat, etc.). Anyways, you have to pick one door. After selection is done, one door (with less desirable content) is opened for you. Now you have to decide whether you want to stay in your original selection or switch to other door. There are conflicting opinions which choice is better, but but now you can try it yourselves using this free Android application: Monty Hall Problem Simulator.  EDIT: Monty Hall Problem Simulator by WestSloth Games was removed from Google Play Store because of outdated API level. This was a nice and relaxing weekend project for me...

Back to Unity3D

It's about two years since I last time tried to do something with Unity3D. At those days I did not have much gamedev experience. I just took some web based trainings and created couple of demos, but decided to use bit simpler tools for my first game projects. So far I have created several Flash games with Stencyl, and couple of Android games using Construct 2. Although these games are pretty simple and silly, I feel my level of gamedev knowledge has improved a lot by doing these games from the beginning to the end. Now I am trying to get familiar with latest Unity3D tool. I decided to start learning with  free Unity 2D tutorial from Udemy . Obviously there are plenty of other trainings available, but this seemed like a good intro for using the tool. My first impression is that there has been lots of improvements in Unity3D since the version 3 I was using last time. Somehow the tool seems to be easier to use now, or my skills have improved a lot in last two years. :) I hav...