English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 21 February 2024, 19:02   #1
lifeschool
Local Moderator
 
lifeschool's Avatar
 
Join Date: Oct 2009
Location: Lancashire, UK
Age: 48
Posts: 1,597
CanDo General Help Thread

I thought I'd start this thread in case anyone out there wants to try out the multi-media creator CanDo.

There are quite a few things I discovered by trial and error, so if anyone wants advice or can share tips, that would be great.

Installing:
I found V3.0 on the EAB file server, or it could be on Archive.org. There may be other places like PlanetEmu etc. Once installed, run it, then quit. Then run the V3.008 update patch from Aminet.

The update patch switches off the interlaced interface, so you might want to press the Config button, Screen, Cando - and click Interlace, and Save it - to switch it back on again.


Quote:
Originally Posted by fstltna View Post
I'm using CanDo 3.0 and its just like i remember. But I can't remember how to return values from routines. For example:
Code:
Let X=RandomX
Where RandomX is my routine.
Any answers?
Also, my tutorial is for CanDo 1.x/2.x - is there one for the 3.0 version?


I still need the tutorial if anyone has it, but found the answer to my question myself.

At the end of your routine you put:
Code:
ExitScript <Return value>
Then you call the routine like this:
Code:
Return = Do "myroutine"
FYI....

This quote is from an old post. I tried to use the return command but it seems this doesn't appear in the Lexicon, and comes up with an error. I'm looking for a reliable way to loop the inputs so that the game checks for joystick inputs every few jiffies, but otherwise keeps the game rolling. I want to call the joystick function but I dont know how to do this, as the function is not a routine I can access?

I can force the game to run in a while loop, but doing so locks me out of the interface, and the buttons, so there is no way to break out of it - causing the game to lock up.


In an ideal world I would put

Wait Until Joystick Arg2<>Nothing

But I cant get my head around it.


--

FYI - Some handy shortcut keys


Main Window:

RAmiga + 1 = Config
RAmiga + 2 = Routines
RAmiga + 3 = IFF Screen Grab
RAmiga + 8 = Clear Window
RAmiga + 9 = Clear Variables
RAmiga + 0 = Clear Buffers


Routine Editor:

RAmiga + 1 = Expression Calculator
RAmiga + 2 = Switch Events
RAmiga + 3 = Lexicon Assistant (very useful!!!)
RAmiga + 4 = Run Script
RAmiga + 6 = Routines
RAmiga + 7 = Run Debugger

CTRL + F4 = Break (?)
CTRL + F9 = Raise/Lower Script Editor Window

Last edited by lifeschool; 21 February 2024 at 19:32.
lifeschool is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with CanDo routines fstltna support.Apps 2 10 March 2023 19:18
Cando 3.0 Crash bigpoppa206 support.Apps 2 13 January 2019 11:19
Looking for CANDO... astuermer support.Apps 3 09 November 2018 20:23
CanDo v3.0 otro request.Apps 29 24 July 2014 17:05
Looking for manuals for Scala IC400 and CanDO. mugo request.Apps 5 09 November 2010 15:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:34.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06389 seconds with 13 queries