Finding the Game.random function or something that matches with PC version of GS
Enkide
Member Posts: 5
Hi, First time user of this forum, I've been trying to follow the tutorials of Game Salad on youtube and the guy calls for a Game.Random function, but when I try to look for it, I can't find it. Is it not part of the PC free GS, or is there another function like it that I can use as a replacement?
Comments
Random is an expression and it's in the expression editor with the trig functions et...
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
To add to what @The_Gamesalad_Guru said, it sounds like the person making the tutorial created a game attribute called Random, and that's where the random function is storing the number it generates.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
So How would one make something like that?
Like what? What is it you're trying to do? Setting aside the need to create random values (which @The_Gamesalad_Guru answered above), what is the tutorial you were watching? And what is the game you're trying to re-create?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
It will make the development path of your game a lot easier if you take some time to work through the Cookbook Tutorials and learn the basics before you start your game. From your post it seem that is what your are doing if not I suggest you do it. Also search for and read everything on universal binaries. If you don't get this right you will end up with multiple binaries for different resolutions or doing a rewrite.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
Here's the tutorial I was following https://youtube.com/watch?v=Y_Ht-HfQXVU&list=PL70FA947547630FC1&index=8
The first part of the video shows that he made an index attribute and called it "random".
I don't think the PC version has an index type attribute. So you will need to make an attribute of type 'integer' instead. Then name the new attribute "random".
Can you Explain a bit more into how to make that? I'm a little bit behind on the terms.
Sorry I am on a mac. (Never used the PC version.) Though I assume the process is the same and the video you referenced shows how to make a new game attribute.
Thanks I figured it out a bit late, but thank you.
You are welcome. I hope you enjoy using GameSalad!