GameSalad Forums GameSalad Forums
Categories
Discussions
Dashboard
Sign In · Register
Sign In · Register
Categories
Discussions
Dashboard
Sign In · Register
Home › Search
  1. Is there a way to spawn something with random width?

    tatiang
    by tatiang · October 2014
    So the advice above is correct as far as adding a Change Attribute behavior. Just make sure it's not inside of a rule. The change will occur instantly so you shouldn't even notice it happening; it w
  2. Is there a way to spawn something with random width?

    retired_830c50d3bf119e557be016b4f24844c9
    by retired_830c50d3bf119e557be016b4f24844c9 · October 2014
    Change Attribute: self.Size.Width to random(20,45)
  3. Is there a way to spawn something with random width?

    BBEnk
    by BBEnk · October 2014
    use the change attribute behavior in the actor thats being spawned like so change attribute self.size width to Random(20,45) and it will do this once spawned.
  4. Is there a way to spawn something with random width?

    Dasavur
    by Dasavur · October 2014
    I am trying to spawn a block that will have a random width between 20-45. I have attempted to do this both through the spawner and the block itself by using a timer and change attribute (it will be on
  5. making actor follow mouse

    rabbidrabbit
    by rabbidrabbit · October 2014
    I need to make an actor follow the mouse around the screen. I've been using a move to mouse.xposition mouse.yposition function, but when it catches up to my finger it stops moving. I changed it so tha
  6. Statement execution order - can somebody explain?

    hardkraft
    by hardkraft · October 2014
    @BBEnk, I would expect text box to behave like any other repository of text for example a string attribute. When I put some text in a string inside a rule that text will still be there even when the r
  7. Low Orbit

    outlandishPIXEL
    by outlandishPIXEL · October 2014
    Protect the planet from devastating asteroids and pesky aliens. Survive for as long as possible in low orbit, watch out for collisions and alien laser fire whilst fighting the planet's gravitational p
  8. Statement execution order - can somebody explain?

    BBEnk
    by BBEnk · October 2014
    change var1 attribute to 1
  9. Statement execution order - can somebody explain?

    BBEnk
    by BBEnk · October 2014
    (Quote)
  10. Statement execution order - can somebody explain?

    hardkraft
    by hardkraft · October 2014
    * attribute changes to 1
  11. Statement execution order - can somebody explain?

    retired_830c50d3bf119e557be016b4f24844c9
    by retired_830c50d3bf119e557be016b4f24844c9 · October 2014
    Change Attribute: you update the value of var1 to 1Display Text: you display the value of var1 (which never shows on screen)Rule: If var1 = 1 (which it will) Log Debug of var1 which logs 1 Dis
  12. Statement execution order - can somebody explain?

    hardkraft
    by hardkraft · October 2014
    the rule gets executed AFTER the reset of the attribute even though it comes BEFORE it (but not really since the log statements do get executed in the proper order).
  13. Statement execution order - can somebody explain?

    BBEnk
    by BBEnk · October 2014
    your rule did nothing thats my point the result was still attribute changed from 0 to 1 back to 0 here your test a little different with timers you can watch what happens.
  14. Statement execution order - can somebody explain?

    Socks
    by Socks · October 2014
    (Quote)
  15. Statement execution order - can somebody explain?

    BBEnk
    by BBEnk · October 2014
    GameSalad runs very fast and the change from 1 to 0 is to fast for you to see but it does happen your using the same attribute to display the same thing so you only see a 0.
  16. Statement execution order - can somebody explain?

    hardkraft
    by hardkraft · October 2014
    In this case I believe it’s both. I change the attribute which changes the default value that was in it.
  17. Statement execution order - can somebody explain?

    Socks
    by Socks · October 2014
    . . . are using 'initialize' to mean change a value with the change attribute behaviour, or maybe by 'initialize' you mean you change the default value of the attribute ?
  18. Statement execution order - can somebody explain?

    BBEnk
    by BBEnk · October 2014
    You have a change attribute at the bottom of your rules thats changes it back to 0. rules run top to bottom, layers run bottom to top.
  19. Statement execution order - can somebody explain?

    hardkraft
    by hardkraft · October 2014
    (Quote)
  20. Statement execution order - can somebody explain?

    retired_830c50d3bf119e557be016b4f24844c9
    by retired_830c50d3bf119e557be016b4f24844c9 · October 2014
    Timer After 1 second (run to completion)RuleChange AttributeLog Debugging Statement
Previous Next

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with GameSalad

Sign In Register

© Vanilla Keystone Theme 2026

Powered By Vanilla