Multitouch Hold and Move
i am developing a shooting game and want the player to be able to move the crosshair with their finger and then tap or hold another finger on the screen to shoot (tap=fire once and hold==fire...
View ArticleJump and Hold on!!
Hello friends! Does anyone have any idea how I can make the character jump and hold on the wall as shown in the picture?[alt text][1] [1]: /storage/temp/47482-1.jpg
View ArticleHow to play animation with one click
I'm trying to make a lightsaber game and it's looking pretty good but I've run into a problem. When I play the animation for my lightsaber attack (called "Attack" and "Attack2") it won't play the...
View ArticleHow to make a 2D mobile tap jump with small jump and if I Hold a touch it...
Hi, I have a 2D game that has already a jump michanism. a tap or even a hold would just make it jump with the same force. the jumpforce is 8 which I want it to be the highest jump possible which is a...
View ArticleControlling body parts during animations with scripts
I'm making an archer in a 2D game. I've made an arrow drawing animation which leaves the player aiming in a horizontal direction. I now want the player to move the aiming direction by moving the mouse...
View Articlecodes for detecting mobile double tap and hold
hello i have 2d game that i want it to detect a mobile double tap and hold can anyone give me an idea or maybe a full c# script?
View ArticleRigidbody Position Changes don't work when moving.
Ok, I am in the process of making a pickup/hold system for my game. To make the object behave realistically, I am trying to make it move backwards when it collides with an object. This works fine, the...
View ArticleRigidbody2D hanging/grabbing another Rigidbody2D
I'm very new to Unity so please bear with me, I'm currently experimenting. I want to create a situation where a player can jump across/through an object but if they press a key while passing...
View ArticleHold touch button Unity Javascript
I have script for crouching when i press and hold S its crouching when i release the button the player gets in his normal size. Now i want to do the same thing with touch button but i cant figure how...
View ArticlePick up, drop and place tagged objects
Hi, with my script I am able to pick up and drop objects tagged as "Pick" with the E key but the bottom of half of the script does not work. What I am trying to do is allow the player to not only pick...
View ArticleDo something when holding finger on screen mobile
I can't figure out how to create a script that when I press the screen and hold, something happens, and when I release my finger, that something stops happening. What I want to do is that when I press...
View ArticleButton Press and Hold, instead of Click?
I am creating an arcade-tank game and the longer you hold the space bar (if you're using a PC/Mac), the more force will apply. I want to port over to mobile devices, so how can I set it to the longer...
View ArticleHow can a make on click jump small but if a person hold button jump higher....
How can a make on click jump small but if a person hold button jump higher. im making a 2d platform game for android. I want to make my player jump if user click the button but if he holds the button...
View Articlehow can my player keep jumping wen it hit ground again?
I want to make my player to keep jumping wen it hit the ground a gain if I'm holding my button down, but right know it only jumps one for each time a click or hold the button . is for mobile divice....
View ArticleHow Would I Make a Base Building Game?
I am working on a project where the player can create and move buildings. I am having a problem with is moving the buildings once they have been placed. What I want is when the player holds down the...
View ArticleUI in world space, but not resizable with zoom
Hello, if someone can helpme with this. I have a lots of solar systems (2D game) and they have a canvas in world space mode (a raw image for example as child indicating where they are). When i zooms...
View Articlehold touch to move, tap to rotate
public float holdTime = 4f; void Update() { Move(); } public void Move() { if (Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Stationary) { float startTime = Time.time; if...
View Articlehold key unequip sword
Hi, i want to know how can i make the code for unequip/equip a blade only when i press "mouse1" i mean, i press attack and the character give the sword to attack, but when i hold the key, the sword...
View ArticleSwipe and Hold to move character .
Hi all , I am trying to move my character by following gesture : User swipes on screen ( this swipe determines which direction character is suppose to move ) and then without lifting the finger holds...
View ArticleHow to play loop an audio clip on button hold down?
Hey guys im really new in what comes to Unity. I'm trying to make some drum pads to have individual sound that when you press and hold it it will loop. So far i got to this script but i can't make it...
View Article