Quantcast
Channel: Questions in topic: "hold"
Browsing all 154 articles
Browse latest View live
↧

Pick 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 Article


Do 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 Article


Button 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 Article

How 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 Article

how 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 Article


How 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 Article

UI 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 Article

hold 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 Article


hold 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 Article


Swipe 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 Article

How 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

Move while mouse button is held down

Hello folks, I'd start by saying I'm new to coding and unity. I've been working on a little personal project mainly working from different tutorials trying to modify things to my liking which has been...

View Article

how to hold button longer, the more powerful shot ?

I'm sorry about this noob question. I have a gun and when I press the button "fire", how to hold it longer, the more powerful shot. I can not get the time value when holding the button.

View Article


My Rigidbody can stick/hold walls

When I jump into a wall, and hold the button in the direction of the wall, my rigid body character can hold/stick to the wall for a bit. Here is my code (And no switching to character controller is not...

View Article

Increasing value by one every second, if right arrow is pressed - C#

Hello, I have a float "Levelint" and I want to increase it by one while I am holding the right arrow. So, when I hold the right arrow it will increase by one, every second, and if I just press the...

View Article


Hold to peek or peek and pop in android

I need help on how to hold to peek or peek and pop in Android by adding or editing this code. using UnityEngine; using UnityEngine.UI; using System.Collections; using UnityEngine.SceneManagement;...

View Article

Input press to play different animation to input hold?

Is this possible? I'm trying to make a button press do a jumping animation and action whilst trying to make a button hold do a sliding animation and action, I feel like there is a simple answer but I...

View Article


Button Press and Hold Animations

Hello I was wondering if anybody could explain to me why this code only works some of the time not all of the time, it's supposed to allow the user to hold down the space bar to slide after a given...

View Article

Unity 3d hold/grab/lift/throw/choke?

Hey i was wondering how do i archive movements/ability (not sure what it's titled under) any help will be nice. 1. pulling down a switch, opening doors or turning a valve with Real Hands like the hands...

View Article

How to jump higher when you hold down with *touch* controls

So I looked through similar questions here on how to jump higher when a button is pressed but since my game is for mobile I need to make it based on when the user taps on the screen and holds it down...

View Article
Browsing all 154 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>