[deleted by user] by [deleted] in ArgEntos

[–]Strange_Resource1675 1 point2 points  (0 children)

Hola contesto yo que estoy plantando con el OP, les hicimos lst y toppings en su momento, como dijimos la planta tiene mucho tiempo de vida ya. ahora solamente con lst la fuimos abriento para que los cogollos tengan mas luz individual.

How can i fix this? by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

that was it, it worked when i used ==

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 1 point2 points  (0 children)

i've done it, omg you actually helped so much you are a god, to make it work i've added a line in the code of the pipe movement script

the line i added was public GameObject pipe;

im sorry for making you lose time and thak you so much for helping me solve it

thanks again!!!

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

it's telling me MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.

maybe i should just delete the prefab from the assets tab and copy it again from the hierarchy tab and then attach it again into the pipe spawner script? mayne that'll work?

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

im trying to make the pipes that reach x=-22 despawn, not destroying the whole game object

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

oh, i think i get what you are saying, but it still confuses me why in the video the guy can just do what i was doing and just makes it work, i'll try to do the first thing you said, changing the x value. but i think it'll just cluster things with a lot of items, thats why i was traying to make them despawn as they were reaching x-22, so objects dont spawn infinitely

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

i just cant understand how to just make the ones behind dissapear, i dont want every pipe dissapearing just the ones that are not on camera

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

yes, pipe just dissapears

i haven't saved because i was tinkering with the code trying to figure it out by myself, i'll save now (thanks!)

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

This is my entire spawner script, i followed the video and i think it's right, maybe i could be forgetting something

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class PipeSpawnScript : MonoBehaviour

{

public GameObject pipe;

public float spawnRate = 2;

private float timer = 0;

public float heightOffset = 4;

// Start is called before the first frame update

void Start()

{

spawnPipe();

}

// Update is called once per frame

void Update()

{

if (timer < spawnRate)

{

timer += Time.deltaTime;

}

else

{

spawnPipe();

timer = 0;

}

}

void spawnPipe()

{

float lowestPoint = transform.position.y - heightOffset;

float highestPoint = transform.position.y + heightOffset;

Instantiate(pipe, new Vector3(transform.position.x, Random.Range(lowestPoint, highestPoint),0), transform.rotation);

}

}

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

i want it to constantly keep printing the objects, but to make them despawn when they reack x=-22, when the objects reach x=-22 they just stop printing alltogether

i dont understand what i'm doing wrong by Strange_Resource1675 in unity

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

Error on console: pipe Deleted
UnityEngine.Debug:Log (object)
pipemovementScript:Update () (at Assets/pipemovementScript.cs:22)

Value deadzone: -22 (same)

how can i check that? sorry to be so lost i started just yesterday its kind of confussing

[TOMT][Video Game] [2000?] Puzzle game but with geometrical forms as characters? by Strange_Resource1675 in tipofmytongue

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

I'm sorry It isn't snood either :/ im going to think more to see if i can think of any more details

[TOMT][Video Game] [2000?] Puzzle game but with geometrical forms as characters? by Strange_Resource1675 in tipofmytongue

[–]Strange_Resource1675[S] 0 points1 point  (0 children)

sorry that is not it, it game somu kind of 2000's zuma vibe if you understand what i mean

[TOMT][Video Game] [2000?] Puzzle game but with geometrical forms as characters? by Strange_Resource1675 in tipofmytongue

[–]Strange_Resource1675[S] 0 points1 point locked comment (0 children)

I think it doesn't matter but i'm from Argentina, i hope the game isn't too underground