What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 22:40:23
c# movement script
using UnityEngine; using System.Collections; // This script moves the character controller forward // and sideways based on the arrow keys. // It also jumps when pressing space. // Make sure to attach a character controller to the same game object. // It... Add solution -
C# 2022-03-27 19:15:02
top down shooting in unity 2D
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shooting : MonoBehaviour { public Transform firePoint; public GameObject bulletPrefab; public float bulletForce = 20f; // Update is called once... Add solution -
Other 2022-03-27 15:50:06
sips png to jpeg
# set quality to 'normal` $ sips --setProperty format jpeg \ --setProperty formatOptions normal \ input.png \ --out output.jpg # or set quality to a percentage value $ sips --setProperty format jpeg \ --setProperty formatOptions 42.195 \ input.png \ --out... Add solution -
Other 2022-03-27 10:45:04
godot platformer movement
extends KinematicBody2D # The player is a kinematic body, hence extends Kine.. # Adjustable variables of the player # export is used to allow to edit the values outside the script export var speed = 500 # The speed of the character export var gravity = 3... Add solution -
Other 2022-03-24 23:25:02
character controller unity crouch
#pragma strict private var ch : CharacterController; private var startHeight : float; // initial height function Start() { ch = GetComponent(CharacterController); startHeight = ch.height; } function Update() { var newH : float = startHei... Add solution -
Javascript 2022-03-24 13:45:35
javascript sanitize input slug
// https://stackoverflow.com/a/1054862/485063 jq('.input.slug, .slug, input .slug').unbind().bind('keyup paste', function(){ var low= jq(this).val().toLowerCase() .replace(/ /g,'-') .replace(/\_/g,'-') .replace(/[^\w-]+/g,'') .replace(/\-\... Add solution -
Javascript 2022-03-23 02:40:39
how to clear text ibput after message sent react native
//you will need to retrieve the ref at your constructor using React.createRef: //At constructor function: this.myTextInput = React.createRef(); //At render function: <TextInput ref={this.myTextInput} /> //And then you can call this.myTextInput.cu... Add solution