creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Making things twirl spore-styl   
Ghosthande
Prodigal Sock

Ghosthande
United States  

 visit Ghosthande's website: Breeders Beware
  12/2/2008

Sorry for making another topic, but I'm trying to figure out what a certain variable is called. The spores from the red mushrooms in the Grendel Terrarium are animated when they fall. How is this done exactly? I have a food object that I'd like to be animated while it's in the air, but haven't been able to find any examples of this code.


 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  12/4/2008

Have you tried the anim and fall commands?

My TCR Norns
 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  12/5/2008

Oh. No, I'd never heard of that. #o.o#


I've tried using it now but so far haven't figured out how to make it work.

If I put it in a timer script, the game ignores it completely, no matter which variable I change or what I change it to.

If I put the fall command in the main part of the script, right after the section where the object is created, the game gives me an error that it doesn't like the anim command (and I have checked to make sure the numbers are consistent--I don't know what the problem is).

And then while it's in the main part of the code, if I replace the anim command with a pose command, it ignores it again.


Is there a bit of code that tells it to check to see if it's falling or not, or something like that, that I need to put in to make it work? Because otherwise I'm stumped.



 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  12/5/2008

I think

doif fall eq 0
should say "do this if you're not falling".

Try putting the anim commands in the drop and pick up scripts?

Have you tried Don's Bootstrap V2? It has the C3 bootstrap, but most of the scripts are commented a bit.


My TCR Norns
 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  12/5/2008

That's what the Creatures Wiki says. Putting it in the drop/pickup scripts doesn't work either, for some reason.

Would Bootstrap V2 work for Docking Station? That's what I have to work with.



 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  12/6/2008

Well, you wouldn't have the images to go with it... Have you decompiled TwilightCat's Rainbow Shroom at all? It should be fairly similar to the normal fungi in its code.

My TCR Norns
 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  12/7/2008

Well, I figured it out. I tried using the code from the mushrooms, but came back with the same problem--the game simply would not accept the anim command. What really stumped me was the fact that the mushrooms worked in pretty much the same way as my own object, and the mushrooms worked just fine. But I have finally figured out what the problem was.

The number of sprites stated in the creation script for the vendor must include all of the sprites used by both the vendor and whatever objects it creates. That was the only problem. I changed the number of sprites listed in the vendor's creation script from 1 to 5 and it worked perfectly.

Still, thank you for all your help. I know I get myself into a lot of trouble coding things. #o.o#



 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  12/7/2008

No worries. :D Thanks for posting up what went wrong, so that we'll know for next time. :) I look forward to playing with your agent.

My TCR Norns
 
KC11

KC11


 visit KC11's website: DragonClawWritings (Tumblr)
  12/13/2008

Eheh, when I saw this thread I thought you were talking about the swirling Spore galaxy.

....

<_< >_>

*revived*


Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>

 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
2 online
Nerds
OddFerret
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki