GameSalad Forums GameSalad Forums
Categories
Discussions
Dashboard
Sign In · Register
Sign In · Register
Categories
Discussions
Dashboard
Sign In · Register
Home › Search
  1. Question about magnitude

    Icebox
    by Icebox · March 2016
    (Quote)
  2. Question about magnitude

    Icebox
    by Icebox · March 2016
    But by using magnitude , I will create a self.distance attribute and constrain it to magnitude(self.positionx - game.playerx , self.positiony - game.playery)
  3. Question about magnitude

    Socks
    by Socks · March 2016
    I think you are conflating a bunch of unrelated things here, Constrain, Magnitude, Rules, Display Text, they all have separate and unrelated functions . . . .
  4. Question about magnitude

    Braydon_SFX
    by Braydon_SFX · March 2016
    You use the constrain behavior to constantly update the value outputted by the magnitude function. You want to do this so you can always evaluate the distance between two things. If you only evaluate
  5. Question about magnitude

    Icebox
    by Icebox · March 2016
    its the same as constraining magnitude to calculate the distance between player and an enemy and then adding a rule to display text. why constrain instead of using a simple rule, does it work differen
  6. Timers are for chumps - GS optimization tips

    jamie_c
    by jamie_c · March 2016
    Here's why. You can do Numeric Expressions in GS now, so you can directly enter the Mod1 Attribute on the left side of the equation (you couldn't do this in the past). Also on the right side of the eq
  7. Timers are for chumps - GS optimization tips

    jamie_c
    by jamie_c · March 2016
    @freneticz, Gamesalad has changed since this piece was originally written. You don't really need to assign an Attribute as Mod1 now because you can have create Rules as a Numeric Expression now with m
  8. Making an actor swing in a circle around a point, using the accelerometer

    Socks
    by Socks · March 2016
    (Quote)
  9. Making an actor swing in a circle around a point, using the accelerometer

    RThurman
    by RThurman · March 2016
    OK -- use the following equation in the constrain rotation behavior:
  10. Making an actor swing in a circle around a point, using the accelerometer

    louistrudel
    by louistrudel · March 2016
    create a game angle attribute: Angle
  11. Detecting an obstacle in the path?

    louistrudel
    by louistrudel · March 2016
    -create game attribute GridSize
  12. spawn same actor with different attribute

    tatiang
    by tatiang · March 2016
    You can "pass" an attribute value from one actor to another using this method:
  13. spawn same actor with different attribute

    Icebox
    by Icebox · March 2016
    Hello is there a way to do this :
  14. Making an actor swing in a circle around a point, using the accelerometer

    owen_dennis
    by owen_dennis · March 2016
    It's the swinging around and controlling the rotation that has me a little stuck. One version I tried was to simply constrain the triangle's rotation to vectortoangle(game.accelerometer.x,game.accelor
  15. Copy and Paste text, note taking in Dungeon Crawler

    Armelline
    by Armelline · March 2016
    @tatiang is correct about 1, but you can fake it to an extent. Having an actor copy its text into a buffer and then pasting it into another "notebook" table or attribute would be pos
  16. How to detect when rotated to position

    tatiang
    by tatiang · March 2016
    @RocketBrain The %360 is the mod() function which returns the remainder of a division problem. It can also be written mod(self.rotation,360). So if you had values larger than 360, it would constrain
  17. How to detect when rotated to position

    Socks
    by Socks · March 2016
    Setting it up like that will likely cause you issues (rotation and V2A work on different value ranges), also there's no real need to introduce another attribute ('MyAngle'), it doesn't seem to serve a
  18. Sound pitch expression?

    3absh
    by 3absh · March 2016
    I was going to make an attribute Max HP and then use this formula
  19. Code headache with my almost finish game.....

    The_Gamesalad_Guru
    by The_Gamesalad_Guru · March 2016
    that loop condition maybe the issue. I see you resetting the rule but not the loop condition. That condition makes no sense and the random should be picked and stored in a self attribute so you can ch
  20. Note Dancer (looking for suggestions)

    tatiang
    by tatiang · March 2016
    One thing I noticed is that in your Note actor, you have a Timer set to every random(0.5,1) seconds with two rules inside. Those rules will trigger whenever they are true even without a timer. So th
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