English

Forum

Back to OverviewNew post
OcttoMan
OcttoMan

Give action + animation

12/07/2011, 21:02
Hi, i come with another question, (i search here but i dont find nothing)

I have the action "give" in the inventary, if i use it, the object is given from one character to other.

But now, i make the "give animation" and i dont know how make it correctly. If i put the animations in a action in the caracter's "give action", the two characters make the give animation, BUT the object dont move from the inventary, if i erase the action, the function works but without animations.

I dont know how can i do this.
 
Alex
Alex

RE: Give action + animation

12/29/2011, 21:19
Hi,

you can always use the action part 'Add/Remove item' to add/remove the item to an interface. So you could show the give animation, remove the item from the current character and then add the item to the other character.
 
OcttoMan
OcttoMan

RE: Give action + animation

01/10/, 00:24
Hi Alex,

I have tried, and works, but is "limited" to my project/game.

I have 3 playable characters and i want that, when i "give object_1 to character_2", the first character play the animation+quit the object, and in the second character (or the third) recive the object+make the animation. But, if i use your sugestion, i can do only with two concrete characters.

I can“t do the animations for the give actions from the character1 to (character2 or 3), character2 to (character1 or 3), ...


Thanks! and sorry again for my bad englishgrin
 
Alex
Alex

RE: Give action + animation

01/13/, 21:00
hard to tell. I don't know if it's possible. Maybe this can be achieved by a script. I think the necessary data is available:
VGameUsedItem item currently picked up
VGameCurrentCharacter current character played by the user
VGameCurrentObject object below the cursor

in the actions of each character you should add an action with execution type 'item dropped' (or 'executed command on character' in case you are not using draggable items) and item [any]. in this action you can call your script.

all in all it's not easy but it should be possible if you have some scripting experience.
 
OcttoMan
OcttoMan

RE: Give action + animation

01/14/, 15:03
Ok, I'll think about it. I search about visionaire scripting, is there any "command list" or "tutorial" about it? I know ActionScript, html, etc... i think i could do something if i understand it.
 
Alex
Alex

RE: Give action + animation

01/14/, 21:19
http://wiki.visionaire2d.net/index.php?title=Scripting

this is the official documentation. You also need to study the lua documentation (which is linked on this page) and have enough programming experience. There are some German scripting tutorials but I don't think there are tutorials in English. You should find some code snippets in the forum posts.
 
OcttoMan
OcttoMan

RE: Give action + animation

01/16/, 13:07
Thanks Alex, that's what i needed!
 
Back to OverviewNew post