Quantcast
Channel: Questions in topic: "power up"
Browsing latest articles
Browse All 49 View Live

Losing power up bool value

I'm just about finished on a 2D shooter game and everything is working perfectly except for my score multiplier power up. I know the bool value is being set to true when the player picks it up but when...

View Article



2D Charge Jump Complications

I have been having trouble getting a charge jump to work. I am a beginner in java script and any help would be helpful. The script doesn't cause any errors but does not cause "jump" when the space key...

View Article

How do I use a power up to change the character I'm controlling?

Here is my situation: 1. I have a particle system with a box collider attached with "is trigger" checked. 2. I have 2 playable characters with character controllers attached. When you start the game...

View Article

Change speed of character using gameobject.active at runtime?

I have been trying to figure this out for quite some time including 2 more questions on the forums with no answers. So I'm going to go into detail on this and hopefully someone might be able to point...

View Article

How to use OnCollisionEnter() and OnTriggerEnter() with physics to make ball...

Objective:Only make the ball bounce of the brick when the star power up is ***NOT*** activated. If the ball's star power up ***IS*** activated,make the ball travel through the brick without physics...

View Article


How to make using a power-up affect score?

Hello I have a simple score script and a power up script, both are separate. What I'm wondering is if it's possible to somehow link the two so that when the power up is activated some score is taken...

View Article

Temporary boost

In my 2D vertical platformgame i want to give my player a temporary jump boost. im thinking something like. if(hit.gameObject.tag == "Boost") { **var jumpheight =*2.0;** yield.WaitForSeconds(5.0)...

View Article

Power Up Script Problem!

I am making a simple jumping game and I have made a sphere which is going to be my power up. I want it so when I collide with the sphere, it sets the Time.timeScale to 0.5 for only **10 seconds**. Then...

View Article


Invincibility Power Up

Hi guys, I am trying to create a invincibility powerup that lasts a few seconds I have the following code: private PlayerHealth healthScript; void Awake () { healthScript =...

View Article


Destroy prefabs after they have been instantiated (C#)

Hello my friend who is reading this! I got a problem with some of my code. I have created a power up prefab that is supposed to destroy all enemy prefabs that are out on the map. I'm spawning out new...

View Article

Power up not working

So I currently have a working 'Speed' power up that multiplies the speed of the player by 2. I'm trying to make a power up now that increases the score you get for picking up the GameObject 'Gem' by 2....

View Article

PowerUp timer not working when altering timeScale

I am so close to figuring this out! I am trying to make 2 powerups. One will slow down all objects on the screen and the other will speed up all objects. I am able to accomplish the slow down and speed...

View Article

PowerUp Timer

I have successfully created a slow motion power up and i thought this script would allow me to set the time scale at any speed I wanted, but if I set the timescale at 1.5 the timescale never returns...

View Article


Unity2D: Frost Effect Animation

Hi, I want to know is there a way of using Mathf.SmoothStep to control the float of a variable? You see I downloaded this [package][1] on unity assets store and created a IEnumerator OnTriggerEnter2D...

View Article

How do i make my player sprite change, when entering a powerup?

I am making a start 2d platformer, actually my first game i got the walking, jumping and collisions working But now when i've got to make powerups i wondered how i make a player sprite change to...

View Article


Magnet Power Up,moving the coins towards the player

I am making a 2D endless runner platformer sorta game where the player could collect Power Ups one of which is the Magnet,after collecting it the player has 5-15 seconds where all the coins that are...

View Article

Code structure for power ups

I'm struggling to create code for a game I'm working on that includes power ups. When the player picks up a power up, I need to start a new power up progress bar, and activate the power up. After the...

View Article


2D Player can not detect collectible / power up Game Object [Version 2019.5f.01]

I am trying to get a player to pick up an object in a 2D environment. The player can move onto the object, but the object is not registered as being picked up. The game runs without errors. The pickup...

View Article

I want to code a Power Up!

Hello, I coded a booster for my platform game the other day. Here is my code, but there is a problem; [code] public class PowerUpJump : MonoBehaviour { public int jumpPlus; public int duration; public...

View Article
Browsing latest articles
Browse All 49 View Live




Latest Images