object growing with time
#8

They are likely doing one of these options:
- using different objects,
- having the same object but slowly raising it up, so more of it is visible every growth cycle,

I doubt they are resizing the object as that would be a lot more complicated albeit could be quite prettier.

I don't think you will find a tutorial specifically for this but you can take a look at other scripts that grow drugs and see how they do it, maybe adapt some of their ideas in your own way.

I recon you could do it similarly like this: player plants weed -> object is created, timer is started -> every timer is a single growth cycle, so after it's finished, the old object is removed; a new, bigger object is created, the state and data of the plant are updated and a new timer is started or the same one is looped -> player harvests the plant, timer is killed, player gets everything and the plant is deleted from the server.
Something like this, I guess.

Here is some filterscript I found
https://sampforum.blast.hk/showthread.php?tid=609790
Reply


Messages In This Thread
object growing with time - by grymtn - 25.06.2018, 11:26
Re: object growing with time - by Verc - 25.06.2018, 12:45
Re: object growing with time - by Adamoneoone - 25.06.2018, 13:30
Re: object growing with time - by grymtn - 25.06.2018, 13:31
Re: object growing with time - by Adamoneoone - 25.06.2018, 13:32
Re: object growing with time - by grymtn - 25.06.2018, 13:33
Re: object growing with time - by Sew_Sumi - 25.06.2018, 14:28
Re: object growing with time - by AdamsLT - 25.06.2018, 14:33
Re: object growing with time - by grymtn - 25.06.2018, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)