Posted November 06, 2024 by misterG-gamedev
So I thought about some more practical questions and added this to the overall scope/game idea:
Looking back at earlier projects from 2+ years ago, I found a good starting base for an easy drag and drop movement. The idea is that you drag the player across the screen to move while not bumping into obstacles. If you bump into walls/obstacles, you make a vibration and attract enemies (eventually I mean).
Can't believe how easy it is to trigger Android vibrations:
#if UNITY_ANDROID Handheld.Vibrate(); // Trigger a single short vibration #endif lastVibrationTime = Time.time; // Reset cooldown timer }
That is all that is needed to trigger a vibration when for example colliding with an object