This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
Now that I'm on break I installed the update. Everything ran just fine without modifying anything (except for one little thing is a bit off which I'm working on fixing now). Although, I tried adding borders to one of my fonts and the game completely froze up as soon as text in that font was supposed to display. Should I make a thread about this?
edit: I tried copying the keyboard control code from page 2 into a definition script and it isn't working for me... the arrow keys cause the character to change direction but not move. I feel like I missed something..
I ended up with the same result when I tried pasting in the script. Character would rotate but not move. When I tried it in the old demo game that came with the free version of 3.7.1 it worked as it was supposed to.
Hey guys,
here a script for walking with the arrow keys and gamepad:local mouse_x = 0 local mouse_y = 0 local charmove_x = 0 local charmove_y = 0 function keyboardHandler(eventType, character, keycode, modifiers) if eventType==eEvtKeyUp then print('key up: ' .. keycode) keycode = keycode % 1073741824 if keycode == 80 then -- left charmove_x = 0 elseif keycode == 79 then -- right charmove_x = 0 elseif keycode == 81 then -- down charmove_y = 0 elseif keycode == 82 then -- up charmove_y = 0 end createEvent('eEvtControllerAxisCharacterMove', {x=charmove_x, y=charmove_y},25) elseif eventType==eEvtKeyDown then print('key pressed: ' .. keycode) keycode = keycode % 1073741824 if keycode == 80 then -- left charmove_x = -100 elseif keycode == 79 then -- right charmove_x = 100 elseif keycode == 81 then -- down charmove_y = 100 elseif keycode == 82 then -- up charmove_y = -100 end createEvent('eEvtControllerAxisCharacterMove', {x=charmove_x, y=charmove_y},25) elseif eventType==eEvtControllerKeyUp then print('controller up: ' .. keycode) if keycode == 1000001 then --controller key A up createEvent('eEvtMouseLeftButtonDown') createEvent('eEvtMouseLeftButtonUp') -- createEvent('eEvtKeyDown',{x=0,y=0},eKeyEscape,0) end elseif eventType==eEvtControllerKeyDown then print('controller down: ' .. keycode) if keycode == 1000001 then --controller key A down end elseif eventType==eEvtControllerAxis then if string.match(character, 'RIGHTX') then mouse_x = keycode createEvent('eEvtControllerAxisMouseMove', {x=mouse_x, y=mouse_y}, 19, 9) elseif string.match(character, 'RIGHTY') then mouse_y = keycode createEvent('eEvtControllerAxisMouseMove', {x=mouse_x, y=mouse_y}, 19, 9) elseif string.match(character, 'LEFTX') then charmove_x = keycode createEvent('eEvtControllerAxisCharacterMove', {x=charmove_x, y=charmove_y}, 25) elseif string.match(character, 'LEFTY') then charmove_y = keycode createEvent('eEvtControllerAxisCharacterMove', {x=charmove_x, y=charmove_y}, 25) end end return false end registerEventHandler('keyEvent', 'keyboardHandler')By the way, we have 3D Model file now for objects.
Nope just Spine.Shaders or something else?
I've updated the shader script accordingly: http://wiki.visionaire-tracker.net/wiki/Shader_(CMS)
The quality of the zooming is better now and you have interactivity.
I'm sorry guys, but no action parts yet. It's high up on my list.Any info on how to use spine with visionaire? How do I implement it?
Load the json-file with the path control on the bottom for objects or with 3d model file path control at character settings. Then add animations, go to animation settings and select the animation. If you want to use multiple spine files for a character you need to use a json file that links to them like this:{ "multiplexer":"", "skins": [], "files": [ { "name": "PARTS/B_default/aliena_B.json" }, { "name": "PARTS/DB_default/aliena_DB.json" }, { "name": "PARTS/F_default/aliena_F.json" } ] }
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.