
Search In
You can pause your game in Unity3D by changing the rate at which the time is passing. It is very helpful in making pause menu in the game and in various situations that require pausing of all the events and physics to stop at the moment.
To pause yo
To play,stop and pause sound using as3 we have to use following:
flash.media.Sound : Sound class is used to handle the loading and playing a sound.
flash.media.SoundChannel: SoundChannel object is used to handle the playback like play,pause
and sto
To add pause/stop functionality on mouse over using easySlider1.7
Step 1: Open easySlider JS file in editor like notepad, notepad++ etc.
Step 2: Goto line number ‘56’, and add below bold marked line.
continuous: false,
numeric: false,
To add pause/stop functionality on mouse hover using easySlider1.7
Step 1: Open easySlider JS file in editor like notepad, notepad++ etc.
Step 2: Go to line number ‘56’, and add below bold marked line.
continuous: false,
numeric: false
Hey do you want to run some code on basis of screen visibility in your app..you can create an Application level class and can set every screen visibility in onResume or in onPaused like this :
public class ThisApplication extends Application {
priva
Sometime we wish to track our user activity when user closed particular activity in app so we can follow this life cycle of Activity :
If you want to send status to your server when application closed or force quit then you should use override metho
Loading Levels, Play,Pause and Exit in Unity 3D scene :
Example :
btn is a string.
void OnClick ()
{
if(btn=="Play")
{
Application.LoadLevel("MyScene");
}
}
Play a Game :
Time.timeScale=1;
Pause a Game :
Time.timeScale=0;
Exit from the Game
For those who are new & trying to use AVplayer in their iphone apps,i would like to share that AVplayer has in built functions for only PLAY & PAUSE as "[self.myAvPlayer play]; & [self.myAvPlayer pause];",which are handy to use,whereas t
Playing sounds in Android
Copy your sounds in raw/ folder in res/ . If you do not have raw/ folder then make one by right clicking on
res/ folder, click on Android resource directory and then giving directory name as “raw” and selecting resource ty
An easy to implement simple swift class working on AVAudioPlayer depicting various features like play, pause and stop.
// creating single instance of class
static let sharedInstance = MyAudioPlayer()
var myAudioPlayer:AVAu