Does anyone know where to find any information on how to use strings?
I't a complete mystery for me!
Does anyone know where to find any information on how to use strings?
I't a complete mystery for me!










I think you will get better response if you tell us what you have trouble with, as strings are quite straightforward to use, and I don't think there are any tutorials on how to use Strings.
Well i have been messing with your random engine trying to figure out why things react like they do with the strings u used. I never used strings before so everything i made i did ingame the long and hard way
Just like str$ and the whole bunch that comes behind ,how do you begin to understand how and what the outcome will be let alone understand it hehe.
Thought that there may be some manual for beginners.










Okay
Let's look at the action:
Set Alterable String to "This is frame number "+Str$(frame)
The current text of the String object is referred to as the alterable string.
If we were to set the alterable string to plain text, we could say this:
Set Alterable string to "This is frame number 5"
Now the alterable string would be hardcoded with that text.
We want to combine some plain text with a variable. The variable's name is 'frame' and that is the current frame we're at. You can find that expression by clicking the Retrieve Data from an Object button, selecting the storyboard icon and then Current Number Of Frame.
If 'frame' was a string value, we could combine the two strings like this:
"This is frame number " + frame
But 'frame' is not a string, it is an integer value reprenting a framenumber. That means we have to convert it to a string before we can use it.
We do that by wrapping it with Str$().
So then our expression is:
"This is frame number " + Str$(frame)
Hmm this sounds easy enough if it written like this. but there has to be manual where people learn these things.
guess I have to start messing with it more. your random engine is so brilliant opens so many doors now for me.
thanks again!










I agree, the manual for MMF2 could be better, but all of these expressions are easy to find within MMF2. In the expression editor, when you receive data from an object, you can browse through all the icons and their subcategories to find all expressions and functions, beside those that are directly in the expression editor as buttons. For instance, the Str$() function can be found by clicking on Special / Conversions / Convert number to string. If you know about these, it should be easy to figure out what to do when the epxression editor gives you the error: Mixed strings and numbers, or Please enter an alphanumeric expression.
i will go play with this some more, if i come up with something brilliant i will let you know![]()