#Cooking System

1 messages · Page 1 of 1 (latest)

sudden sphinx
#

How do you make a cooking system? I want it so that when one ingredient touches another ingredient, it turns into the food. But Touched events are bad and I think it would be bad to constantly check Region3 or GetPartsInPart every frame.

tawdry kiln
#

use touched events

sudden sphinx
tawdry kiln
sudden sphinx
tawdry kiln
#

there's nothing wrong with touched events, you probably just dont know how to use it properly

sudden sphinx
tawdry kiln
#

skill issue

terse escarp
#

You need to do something to make it happen. Touch events are the easiest to use

tawdry kiln
#

e.g the event will rapidfire if you have an anchored part moving

#

probably won't fire at all if you're only changing the size (since physics) - i haven't tested this in quite a while

#

though if i recall if you're changing size it will rapidfire, it's been a while

astral peak
#

tell roblox to make it work then

tawdry kiln
#

i dont think the event fires if you connect to touch after the entity has been put in workspace, not sure about if you connect before then parent you'd have to check that

#

etc

#

if it doesnt fire then just do a spatial query alongside it

astral peak
#

@sudden sphinx touched as in like a tool or do u got a drag system?

tawdry kiln
#

etc etc, skill issue basically. just handle the edge cases and you're good

astral peak
#

yea then problem solved

#

.touched