This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.Black Friday: the Indie Bundle is 30 % off until 1 Dec 2026, €69.30 instead of €99. The code BLACKFRIDAY is already applied.
Get 15 % off Try it for freefunction move(feld, symbol)
local found = false, swapfield = 0
if feld-3 > 0 and Conditions["Feld"..(feld-3).."frei"].Value then
found = true
swapfield = feld - 3
elseif feld - 1 > 0 and Conditions["Feld"..(feld-1).."frei"].Value then
found = true
swapfield = feld - 1
elseif feld + 1 < 10 and Conditions["Feld"..(feld+1).."frei"].Value then
found = true
swapfield = feld + 1
elseif feld + 3 < 10 and Conditions["Feld"..(feld+3).."frei"].Value then
found = true
swapfield = feld + 3
end
if found then
Conditions["Feld"..feld.."frei"].Value = true
Conditions["Feld"..swapfeld.."frei"].Value = false
Conditions["Feld"..feld.."hatSymbol"..symbol].Value = false
Conditions["Feld"..swapfeld.."hatSymbol"..symbol].Value = true
end
end
Hallo,
Schieberätsel ist ja nun schon einiges an Arbeit.
1) Man hat 8 Symbole, die können an jeder Stelle des 3x3 Feldes stehen. Wir können die Felder jetzt mal beispielsweise so nummerieren:
1 2 3
4 5 6
7 8 9
Jedes Feld muss alle Bilder anzeigen können, das kann man entweder per Animation oder dass man für jedes Symbol ein Objekt macht, darstellen. Jedes Objekt hat eine Bedingung, die heißt dass das Symbol mit der Nummer bla dort ist.
2) Jedes Objekt hat eine Aktion um den aktuellen Stein zu bewegen sofern dann möglich, da hier viele Optionen dasselbe tun, kann man das per Werte merken und das in 9 große Aktionen gruppieren, das sieht zum Beispiel so aus:
Feld 1 ist gewählt.
Dann betrachten wir die umliegenden Positionen (2,4):
Wenn Feld 2 leer:
Wenn Feld 1 hat Symbol 1:
Feld1HatSymbol1 = falsch
Feld2HatSymbol1 = richtig
Ende Wenn
... bis Symbol 8
Ende Wenn
Wenn Feld 4 leer:
analog
I'm not willing to share the .ved or script(s) yet as I'm not completely happy with it, even though it is working as it should
I'm working on something like that and it is very, VERY difficult... :-)
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.
Until December 1: the Indie Bundle is 30% off with the code BLACKFRIDAY, €69.30 instead of €99.