# Virtual Pet

**URL:** <https://forum.kirupa.com/t/virtual-pet/38046>\
**Category:** flash\
**Created:** [December 17, 2003, 4:47pm UTC](https://forum.kirupa.com/t/virtual-pet/38046 "2003-12-17T16:47:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dazedlam](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dazedlam](https://forum.kirupa.com/u/dazedlam)\
**Post date:** [December 17, 2003, 4:47pm UTC](https://forum.kirupa.com/t/virtual-pet/38046/1 "2003-12-17T16:47:12Z")

</div>

Hi all, I need some help with some action scripting, I want to create a Flash version of a Virtual pet.

I need to generate a level of health , hunger , boredom but im not to sure how about in implementing this.

I’m thinking of using the “maths.random” function to generate a random level of each but im not to sure if this is the best way of doing it (and how to use it)

Would it be better if I just set a value for each and then decrement X amount every so often?

Or am I looking at this the wrong way?

Thanks

Any advice would be cool

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 23, 2003, 4:15am UTC](https://forum.kirupa.com/t/virtual-pet/38046/2 "2003-12-23T04:15:59Z")

</div>

thats awesome

i think a flash virtual pet contest is something kirupa should consider…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 23, 2003, 9:42pm UTC](https://forum.kirupa.com/t/virtual-pet/38046/3 "2003-12-23T21:42:57Z")

</div>

> \*Originally posted by dazedlam \*  
> \*\*Hi all, I need some help with some action scripting, I want to create a Flash version of a Virtual pet.

I need to generate a level of health , hunger , boredom but im not to sure how about in implementing this.

I’m thinking of using the “maths.random” function to generate a random level of each but im not to sure if this is the best way of doing it (and how to use it)

Would it be better if I just set a value for each and then decrement X amount every so often?

Or am I looking at this the wrong way?

Thanks

Any advice would be cool \*\*

Did u make a .fla yet? If so post it please!!!
