#I need help making a range system style clash of clans

1 messages · Page 1 of 1 (latest)

haughty acorn
frozen mesa
#

you literally didnt ask your question, but sent the forum again

haughty acorn
#

Byt

#

Its too big

#

To write here

#

Cant you read the forum?

frozen mesa
#

yeah i did, it has basically zero information

haughty acorn
#

Lol

frozen mesa
#

wheres the code? a video? something useful

#

in the 2nd screenshot it looks fine, the range is there

haughty acorn
#

It isnt centered

frozen mesa
#

looks centered to me

haughty acorn
junior oxide
#

the perfect center of what? how was that placed

frozen mesa
#

looks perfectly fine

haughty acorn
junior oxide
#

oh thats a sprite

frozen mesa
#

again, theres basically zero information

#

the fact that we need to ask how its placed even though your writing in a forum

#

you should give every single detail needed

haughty acorn
#

"i tryed add a 2d Circle Sprite and change the rotation to x=45,y=0,z=0 it looks like a ellipse but i cant position it correctly:"

frozen mesa
#

so you used no code?

haughty acorn
#

No

#

Iam trying center it but idk how to find the correctly pivot to be perfectk centered

#

Considering the tower size sprite

frozen mesa
#

it looks centered to me, it doesnt need to be any more centered than that

haughty acorn
frozen mesa
#

with code?

haughty acorn
#

Yes

frozen mesa
#

you could do transform.localScale = Vector3.One * (Range / 10); i think

haughty acorn
#

Why / 10?

frozen mesa
#

depends what you make the range i guess

#

but i was thinking if the range is 40, thats too big, so 4 would be big enough

haughty acorn
frozen mesa
#

did you try it? just try it and see

haughty acorn
#

Dont scale be different depending the sprite PixelPerUnits and original Resolution?

frozen mesa
#

just try it

haughty acorn
#

Okie wait

#

yeah dont work

frozen mesa
#

what does it do instead

haughty acorn
haughty acorn
#

iam gonna show wait

#

also

#

here is the tower pivot

#

here is the range pivot

#

it should be on same position

#

nvm i find the perfect center @frozen mesa

haughty acorn