Quantcast
Channel: Latest Questions by 07Mr07
Browsing index pages (59 articles)
↧

Pause and resume coroutine

Hi, im moving and object with a coroutine and I want pause and resume the coroutine. How could do that?

View Article


Pause and resume coroutine

Hi, im moving and object with a coroutine and I want pause and resume the coroutine. How could do that?

View Article


Same Playerprefs for 2 games? [Android]

Hi, Im doing a demo and full game with 2 different APK. The question is if I complete x levels in demo and I buy the full version, I want the x levels completed in full version. Could I use the same...

View Article

Function that does not affect him Time.timeScale?

Hi, I pause my game with Time.timeScale = 0.0f and open the pause menu I have 2 sprites for sound mute/unmute, if press each one should change but if Time.timeScale = 0.0f do nothing. void...

View Article

Freeze position in 2D?

Hi, Im doing a platformer game and I need freeze position of character when he touches something. I saw rigidbody.constraints but is only for 3D, some ideas? Thanks

View Article


Explosion animation in 2D?

Hi, Im trying to do an 2Dexplosion of drops done with singles sprite like this!![alt text][1] For more realistic effect, drops must be affected for gravity and random direction each explosion. I don't...

View Article

Blurry Sprites

Hi,Im drawing on Inkscape to do sprites but when I import on unity the image is blurred on the little details. My current size of the main Camera is 9.5, if I change to 3 the image renders nice. How...

View Article

Move camera slow on X axis

Hi, I need move camera +10 on X axis when press button like this: void FixedUpdate() { if(Input.GetKeyDown(KeyCode.A)) transform.position = new Vector3(transform.position.x + 10f ,transform.position.y,...

View Article


How to do isometric camera

Hi! I need to do a camera like this (im not sure if is isometric) It should move left/right, top/both with a limit and zoom. Im a bit lost, if someone can help me would be awesome! :D ![alt text][1] A...

View Article


Gui.Button over another gui.button

Hi! I have a gui.button and another second over him to cancel the action. The problem is if I use this code: if(GUI.Button(Rect(30, 100, 70, 70), mainBut)) { Debug.Log("MAIN BUTTON"); } if(GUI.Button...

View Article

Cooldown effect in a button

Hi! I'm having problems searching tutorials or information about that, I read the famous post of Eric5h5 [link text][1] but not exactly what I want to do. My idea is something like this ![alt text][2]...

View Article

Disable behind button zone

I'm doing RTS game type , I have buttons to select what kind of soldier you want, then you must click in the terrain to spawn. My problem is when I click in the button, it spawns behind the button like...

View Article

Counter of clicks after gui.button pressed

Hi, Im trying a RTS game. I use gui.button to select type of soldiers and spawn it in map, each click on map spawns one soldier. I need to counter that clicks to control how many soldiers have been...

View Article


Pause Menu does not appears

I need to show a pause main when click on pause button, the game is paused right, but menu dont appears. I cant see what is wrong some help pls? Thanks :D if (GUI.Button(Rect(sW-65,10,50,50),pause)) {...

View Article

Draw Guitexture when hero recollect resources (js)

Hi, I need to generate coins when the hero recollect resources, when we click it stored in a variable (like suns of plants vs zombies). Some ideas to do this?

View Article


Send hero to attack builds (js)

Im making a strategy game and I need send to hero attack the build that I select. How can I do this? Help pls ;D

View Article

Remove life from builds (js)

Im trying an strategy game, i have an scrips that does soldier walk to the closest build and stand up in front of at X distance. Builds have another with health. What I need to do is: When soldier is...

View Article


How change target with GameObject.FindWithTag

I have a turret and should do: -when see an enemy shoot, when he is out of range or dead(destroyed), turret must target next enemy. But my script is doing: -target first enemy and only target rest when...

View Article

Get valor of variable in another script

Hi, I have two scripts, health.js var health = 100f; var enemy : GameObject; function OnTriggerEnter (bullet : Collider) { Debug.Log(health); if (bullet.gameObject.CompareTag("bullets")){ vida -=1;...

View Article

Pause and resume coroutine

Hi, im moving and object with a coroutine and I want pause and resume the coroutine. How could do that?

View Article
Browsing index pages (59 articles)


Latest Images