Advanced code help place!

collabs
regular_help
school
#163

Sorry doing homework and multitasking…

2 Likes
#164

Ok, wait here it’s sunday…

#165

Is there a function that will give the negative value of a number? Like if i wanted to have a tap sense if it was less than 500 for x, it would turn the variable negative.

1 Like
#166

Well multiply that variable by -1, like, when is tapped set variable “x” to “x”(-1)

2 Likes
#167

But like having it switch to -500 once the line was crossed

2 Likes
#168

Ohh ok= when self x position >or< (idk) line x position
Check once if x not equal to -500
Set x to -500

1 Like
#169

WOW, implemented it and it really works!!! I’m surprised… WOW

1 Like
#170

Cool! Can I see? @Rodrik834

2 Likes
#171

Well imma post the link

#172

https://c.gethopscotch.com/p/1032zycawt
The collisions are beautiful! Thank u for the help! @BumpSplatGaming.Co

1 Like