creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Objects Destroyed on Impact?   
Officer-1BDI

Officer-1BDI
United States  

 visit Officer-1BDI's website: My Tumblr Account (semi-NSFW)
  6/18/2009

I was thinking of possible agent ideas today (despite the utter lack of CAOS skills I possess) and one particular idea has left me wondering: is it possible to create an object that will destroy itself after being thrown against a wall with a certain amount of force?

For example, if I wanted to create a water balloon agent that I and the creatures could pick up and (gently) drop with ease, but also wanted it to break (and subsequently disappear) if I dropped it from a particular height or threw it against the wall with excessive force, would I be able to code that? Or could I only create a balloon that would break upon any impact/height drop?

I don't even know where I'd begin, coding wise, so I thought I'd ask before I got too excited about it.


You have to be honest with yourself when you are writing. If that leads to somewhere unexpected then perhaps you really needed to go there.
-- Jim Adkins

 
RisenAngel
Sanely Insane

RisenAngel
United States  
Manager


 visit RisenAngel's website: The Realm
  6/19/2009

I'd imagine you could specify a certain velocity for the balloon to break (i.e. "doif velx/vely = #), but I haven't messed with such things too much, so I can't say for sure.

~ The Realm ~
Risen Angel's Creatures Blog


 
Malkin

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/19/2009

I do know that Moe engineered the Tuba Seeder specifically to stop seeding once it reaches a height above the ground roughly of a norn's middle, so the code of that might be worthwhile examining?

My TCR Norns
 
Ghosthande
Prodigal Sock

Ghosthande
United States  

 visit Ghosthande's website: Breeders Beware
  6/19/2009

There must be a way to do it. Remember the breakable jugs that come with C1toDS? That could be a good start, since they do basically the same thing you're describing.


 
Officer-1BDI

Officer-1BDI
United States  

 visit Officer-1BDI's website: My Tumblr Account (semi-NSFW)
  6/19/2009

I did not even know the breakable jugs were in C12DS (which probably demonstrates how little I use the world :$ ). I'll check them out.

Thanks, everyone!

ETA: Hmm. The jugs seem to bounce off walls and only break upon hitting the floor. I'll try GrendelMan's code and play around with it.


You have to be honest with yourself when you are writing. If that leads to somewhere unexpected then perhaps you really needed to go there.
-- Jim Adkins

 
Papriko
Peppery One

Papriko
Germany  


  6/19/2009

You could also try to take out pieces from the cosfile of the C3 volcano. The rocks break when they have a too strong impact, not important if it is the floor, ceiling or a wall.

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Officer-1BDI

Officer-1BDI
United States  

 visit Officer-1BDI's website: My Tumblr Account (semi-NSFW)
  6/19/2009

*also completely forgot about the volcano rocks*

Thanks, Papriko. I'll check those out too.


You have to be honest with yourself when you are writing. If that leads to somewhere unexpected then perhaps you really needed to go there.
-- Jim Adkins

 


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
0 online
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