Search
Setup for Free
⛄R/S
⛄ R74n / Sandboxels
•
2y ago
nousernamefound
delete elements.water
delete elements
.water
⛄ R74n / Sandboxels
Join
Sandboxels: Experiment with 500+ elements in your web browser. Chat about all R74n projects here!
13,895
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
P
popular-magenta
•
5/2/24, 9:24 PM
I meant a pizel
P
popular-magenta
•
5/2/24, 9:24 PM
pixel
*
S
sacred-rose
delete elements.water
P
popular-magenta
•
5/2/24, 9:27 PM
pixel not element sorry
N
nousernamefound
OP
•
5/2/24, 9:32 PM
deletePixel
(x
, y
)
S
sacred-rose
deletePixel(x, y)
P
popular-magenta
•
5/2/24, 9:36 PM
k so erm how could I change changePixel
(pixelMap
[pixel
.x
]
[pixel
.y
- 1
]
,
"potato
_chip
"
)
;
P
popular-magenta
•
5/2/24, 9:36 PM
to delete the element
N
nousernamefound
OP
•
5/2/24, 9:36 PM
deletePixel
(pixel
.x
, pixel
.y
-1
)
S
sacred-rose
deletePixel(pixel.x, pixel.y-1)
P
popular-magenta
•
5/2/24, 9:41 PM
kk
P
popular-magenta
•
5/2/24, 9:41 PM
ty
!
S
sacred-rose
deletePixel(pixel.x, pixel.y-1)
P
popular-magenta
•
5/2/24, 9:44 PM
Can I do several functions per tick
?
P
popular-magenta
•
5/2/24, 9:44 PM
like multiple tick
: function
(pixel
)
?
?
N
nousernamefound
OP
•
5/2/24, 9:45 PM
why
N
nousernamefound
OP
•
5/2/24, 9:45 PM
this sounds like an xy problem
N
nousernamefound
OP
•
5/2/24, 9:45 PM
what are you trying to do
P
popular-magenta
•
5/2/24, 9:45 PM
Eh nvm
P
popular-magenta
•
5/2/24, 9:45 PM
I need a separate function to statt the cycle count
P
popular-magenta
•
5/2/24, 9:45 PM
I can do it probs tho
!
P
popular-magenta
•
5/2/24, 9:45 PM
WOO
!
S
sacred-rose
this sounds like an xy problem
P
popular-magenta
•
5/2/24, 9:46 PM
How can I do an else function
P
popular-magenta
•
5/2/24, 9:46 PM
or do I need to do an entire other one
N
nousernamefound
OP
•
5/2/24, 9:46 PM
if
(true
=
= true
)
{
} else
{
}
N
nousernamefound
OP
•
5/2/24, 9:47 PM
replace true
=
= true with whatever ur if condition is
P
popular-magenta
•
5/2/24, 9:47 PM
ohh ty
!
S
sacred-rose
if (true == true){ } else { }
P
popular-magenta
•
5/2/24, 9:48 PM
Could I do several functions tho
?
N
nousernamefound
OP
•
5/2/24, 9:48 PM
what do you mean
N
nousernamefound
OP
•
5/2/24, 9:48 PM
tell me what you are trying to do
P
popular-magenta
•
5/2/24, 9:50 PM
A function that checks for gasoline and if it does then sets cycle count to 1
P
popular-magenta
•
5/2/24, 9:50 PM
I guess I COULD do it in same function tho
N
nousernamefound
OP
•
5/2/24, 9:50 PM
of course you can
N
nousernamefound
OP
•
5/2/24, 9:50 PM
why wouldnt you be able to
P
popular-magenta
•
5/2/24, 9:50 PM
Oh how
?
N
nousernamefound
OP
•
5/2/24, 9:50 PM
whats the other function
P
popular-magenta
•
5/2/24, 9:50 PM
eh idk what to name it
N
nousernamefound
OP
•
5/2/24, 9:50 PM
well what does it do
P
popular-magenta
•
5/2/24, 9:51 PM
Checks for a pixel of gasoline and deletes it if there is one
N
nousernamefound
OP
•
5/2/24, 9:51 PM
so
N
nousernamefound
OP
•
5/2/24, 9:51 PM
you wanna check for gasoline and set cycle to 1
N
nousernamefound
OP
•
5/2/24, 9:51 PM
and then check for gasoline AGAIN and delete it
?
P
popular-magenta
•
5/2/24, 9:51 PM
Yeah
P
popular-magenta
•
5/2/24, 9:51 PM
No ima remove the deletion
N
nousernamefound
OP
•
5/2/24, 9:51 PM
why not just do both in the same if
(
) thing
P
popular-magenta
•
5/2/24, 9:51 PM
Good idea
!
P
popular-magenta
•
5/2/24, 9:51 PM
lol
P
popular-magenta
•
5/2/24, 9:52 PM
Im stupid sometimes
!
S
sacred-rose
why not just do both in the same if() thing
P
popular-magenta
•
5/2/24, 9:53 PM
Wait how could I make it wait a tick between each if statement
P
popular-magenta
•
5/2/24, 9:53 PM
without delaying the tick function any more
?
N
nousernamefound
OP
•
5/2/24, 9:53 PM
um
N
nousernamefound
OP
•
5/2/24, 9:53 PM
one way you could do this
N
nousernamefound
OP
•
5/2/24, 9:53 PM
you could run the f irst if statement on every even tick
N
nousernamefound
OP
•
5/2/24, 9:53 PM
and the second if statement on every odd tick
Next page