#coins overlapping

1 messages · Page 1 of 1 (latest)

river bear
#

im creating a coin spawning mechanish for my game and they sometimes seem to be overlapping. Its always CoinCrate and then another coinstack. Anyone knows why? (Floor size: 127.75, 0.5, 167.25. Crate size: about 6x6x6 i think)

Full script:

remote crow
#

uhh

#

ok im tryna think

#

hmmmmm

#

idk

bright bloom
#

you seem like an intellectual

hybrid surge
river bear
#

i can give the exact models if you want?

#

to make it easier

river bear
#

ik this is prob some stupid fix, but i started with roblox studio 2 months ago

#

so im pretty new

river bear
sage tigerBOT
#

studio** You are now Level 2! **studio

lyric canyon
#

the issue was chosen was picked after isFarEnough ran

#

@river bear

river bear
#

i tried making it with grid, but it still doesnt rly work. Anyone knows why?

#

@half patio ?

half patio
river bear
#

sry

half patio
#

When you say it doesn’t really work

What do you mean?

#

Is it still overlapping?

river bear
#

i dont think so, but they sometimes spawn way out of the area

#

im still testing

half patio
#

I see

river bear
#

like to see what happens

sage tigerBOT
#

studio** You are now Level 3! **studio

river bear
#

i think my grid may be too large or smth, idk

half patio
#

Maybe

river bear
#

cause it freezes my game everytime it runs

half patio
#

How big is the grid

river bear
#

?

#

like, the are?

#

area

half patio
#

Yeah

river bear
#

1 sec

half patio
#

I see you are calculating the rows and columns based on a spawn area

river bear
#

yes

#

wait

#

nvm

#

sometimes they jsut spawn like this

#

the crate to the left

half patio
#

Try placing something on all the cells of the grid

river bear
#

k

#

and my floor is 127.75, 0.5, 167.25 btw

#

its only the crates

#

i think

#

im just gonna try removing the crate completely rq

#

yeah then its seems fine

#

but what the hell is wrong with my crate

keen cape
#

Go to pivotoffset

#

Check if it’s not 0

half patio
#

Yeah true

#

That can be why