![]() if game attribute "lane1" number is equal to 1 spawn this item.Hey guys, I'm in a bit of a dilemma. The Actor spawner will have the, spawn set to. and then the sek after spawn the thing in the next collum. Now what i wont is to tell directly to the lane actor or the game attribute for the lane, to spawns what is equal to that collum # that sek. Lets say the #1 is a cannonball, or #number 2 is a powerpickup, or that #5 is nothing. So in the table the will be numbers, each number stands for either a positive spawn, negative spawn, or a "empty" spawn. My idea is that the table will have 5 rows, one for each lane Made 5 game attributes with the names lane1,lane2, lane3, lane4,lane5 I have build 5 actors "5 Lanes" that my player can move in. but here things come from the right and moves to the left. I also saw another post that said the correct expression is ("attribute name"+)%2, but that didnt work either. It all works, but when I try to connect it to the alpha using that expression. Changing the attribute to change the state of the alpha using ("attribute name"+1)%2 I know everything else works because I can change anything else using the new attribute I setup. I know the only part of the process that doesnt work is the last step. Then make a "button" actor to control the visible/invisible state in game. I have read the forums, and found a very useful post that said to setup a new integer attribute on my object I want to control the visibility of, make it an integer, then use that to control the alpha of the object in the color menu. ![]() ![]() I am trying to get a simple interger visible/ not visible option to work on an actor. So I am just starting with Game Salad, and I'm not a programmer or coder by any stretch, but I can do a bit of mel scripting in Maya. There are other, simpler ways of doing this, but I've yet to find one that'll be compatible with that I intend to do in the bigger picture. I'm going to try these rules in the Player object and see if that makes a difference, but then its making it more complex. I made a toggle on a keypress to change IsVisible just to test this, the text box works fine, just not when controlled by the Text Handler. When you move away from the text handler the bool stays set to TRUE and the Text Box object stays on screen. This in turn makes the Text Box move to the bottom of the screen and display the correct text. When the Player collides/overlaps the Text Handler, it sets IsVisible to True and CurrentText to "Hello World", Else is set to make IsVisible False. The actors are a Player, Text Box and Text Handler I'm currently doing it in this format to make these attributes available to everything, all the time: It's just a stylised standard text box which minimises user input. I'm using a text box, that slides up from the bottom of the screen when you collide with a switch, it displays text based on what the 'Event Handler' object contains, e.g. I'm having an issue where a I can't figure out a way to get a game.Boolean to reset to False when 2 actors aren't colliding. ![]() I'm currently using GameSalad on a project. I know a fair bit about programming and scripting and I really like this idea of conditional statements with 'building blocks' for my dev team (it enables even some of the non-programmers to get stuck into other aspects of development) Hi Guys, I'm new to GS and so was a little confused as to where to post this (but this seems a reasonable place to start!) ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |