Finding the Game.random function or something that matches with PC version of GS

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

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Random is an expression and it's in the expression editor with the trig functions et...

  • ArmellineArmelline Member, PRO Posts: 5,409

    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.

  • EnkideEnkide Member Posts: 5

    So How would one make something like that?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @Enkide said:
    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?

  • colandercolander Member Posts: 1,610
    edited July 2014

    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.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    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".

  • EnkideEnkide Member Posts: 5

    @RThurman said:
    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.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    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.

  • EnkideEnkide Member Posts: 5

    Thanks I figured it out a bit late, but thank you.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    You are welcome. I hope you enjoy using GameSalad!

Sign In or Register to comment.