creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Objects Not Sticking with TTAR   
Papriko
Peppery One

Papriko
Germany  


  12/23/2013

Well, I am helping Laura a bit with her snowman. Right now I am not able to get the pieces to attach to each, though.
They are supposed to be stuck to each other when dropped near enough a snowball. Here's the code:
*snowball drop script
scrp 2 21 14867 5
* target a random friendo
ttar 2 21 14867
* check if there IS a friendo...
doif targ <> null
inst
* remember our friendo and his position
seta va00 targ
setv va10 posl
setv va11 post
targ ownr
subv va10 posl
subv va11 post
* attach to friendo
attr 39
velo 0 0
frel va00
flto va10 va11
endi
endm


What's wrong with it? The drop scripts for the other objects are pretty much the same.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Laura
Tea Queen

Laura


 visit Laura's website: CC Chat
  12/23/2013

If it helps you guys to help us any, here's some funny screenshots of it not working as it should...

Weird Snowballs

You Want Me to Stick This Where?

Thanks for any suggestions! :)

 
Papriko
Peppery One

Papriko



  12/23/2013

Now that I think about it... Could it be that I did the subtracting wrong? It is a while ago that I did that stuff.
A NEGV or two might solve it, doesn't it?

EDIT: NEGV did the trick.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Papriko
Peppery One

Papriko



  12/23/2013

Sorry for the double post, but we've got a new issue. Everything finally attaches now as it is supposed to, we also fixed some other minor bugs, but there is something else now:

When you pick up a snowball, it is, while you hold it, dragged to the same drawing plane as the hand itself. The objects attached to it remain on their previous plane, rendering them temporarily invisible (heh, rendering... graphics problems... no pun intended :P)
Is there any chance to make the objects visible without restructuring everything to a compound agent instead and without dragging them on hand plane + 1, which I already tried out in the past and is kinda dangerous, as it can make objects inaccessible from HOTS?

Example video by Laura


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 


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