the additon of a scripting icon
December 16, 2011 12:00 AM
I know we have the ability to use javascript, php, etc., but the addition of an icon that allows us to enter Lectora commands by way of script instead of by icon.
It's nice to have a grouping of icons that perform actions, but the ability to be able to type in a series of say MoveTo commands in a single icon would be nice.
For example:
do while x < 10;
newX=RAND(0,100,1)
newY=RAND(0,100,1)
MoveTo(objectName,newX,newY)
x = x+1
end
I know the above can be done in javascript, and the values passed to Lectora, but the ability to do this within Lectora would add another level of usability.
As well as multiple if/then/else statements in a calculation icon:
if MainMenuVar=1 then
if menuVar6=1 then MoveTo(hatGraphic,35,66) else MoveTo(hatGraphic,100,200)
if menuVar6=2 then MoveTo(hatGraphic,40,60) else MoveTo(hatGraphic,200,200)
if menuVar6=3 then MoveTo(hatGraphic,135,266) else MoveTo(hatGraphic,300,200)
else
ExitCloseCourse
End if
this would allow the use of already created Lectora action verbs to be used as scripting, which would allow for more complex screens and built in animations.
there are more examples to go through, but i hope this gets the idea across.
Discussions have been disabled for this post