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

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.GetMouseButton(0) registering twice on relase?

I am using Input.GetMouseButton(0) to add force to my character. The problem is that it seems to register twice when I release the mouse button. Why is this happening? this is the code I am using: if...

View Article

How to get touch's positon when I hold the button??

I have some ways to solve this problem but its too troublesome. Hope you guys can provide me with any solution. Thanks in advance. public void OnPointerClick(PointerEventData eventData) {...

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

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 Article

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

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


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

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


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

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


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

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

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
Browsing all 154 articles
Browse latest View live


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