GameSalad Forums GameSalad Forums
Categories
Discussions
Dashboard
Sign In · Register
Sign In · Register
Categories
Discussions
Dashboard
Sign In · Register
Home › Search
  1. Spawning actor from table store

    Nspeel
    by Nspeel · February 2019
    And if possible could u give me a brief example of "Constrain scene/game attributes to position.x and y of the visible actor and constrain position.x and y of the invisible actor to the same
  2. Spawning actor from table store

    JB makin' a game
    by JB makin' a game · February 2019
    To let your invisible actor stick to the position of your visible tower wherever it goes, you can use constrain attributes. Constrain scene/game attributes to position.x and y of the visible actor and
  3. Spawning actor from table store

    Nspeel
    by Nspeel · February 2019
    Alright so your store idea for changing the attribute was genius.. that worked perfect it did exactly what I wanted.. I was easily able to figure out how to move the new actor "tower&quot
  4. Spawning actor from table store

    tatiang
    by tatiang · February 2019
    Right. The easiest way to do this is to use the attribute as a "switch" or "toggle." So have it start with the value 0 and then change it to 1. Have an actor that d
  5. Spawning actor from table store

    Nspeel
    by Nspeel · February 2019
    I'm going to add a function to my buy button (store scene) to change global attribute +1
  6. Spawning actor from table store

    tatiang
    by tatiang · February 2019
    To communicate between actors on different scenes, have one actor change the value of a global attribute (e.g. game.SpawnTower) and have the other actor check for a change in value.
  7. Spawning actor from table store

    Nspeel
    by Nspeel · February 2019
    So when you go to buy a tower my code entails (change attribute money -5, unpause game, spawn actor)
  8. Draggable Objects going through walls

    Armelline
    by Armelline · February 2019
    I just guessed the mouse.position.x part, I doubt it's actually that. I recommend repalcing that and the self.size.widths with attributes you pick using the attribute picker. I don't think you can jus
  9. Draggable Objects going through walls

    tatiang
    by tatiang · February 2019
    (Quote)
  10. Draggable Objects going through walls

    ucjugh0
    by ucjugh0 · February 2019
    Constrain self.Position.X to min((768-self.size.width/2),max((0+self.size.width/2),mouse.position.x))
  11. Draggable Objects going through walls

    Armelline
    by Armelline · February 2019
    Constrain self.Position.X to min((768-self.size.width/2),max((0+self.size.width/2),mouse.position.x))
  12. How to interpolate scale using expression

    RowdyPants
    by RowdyPants · February 2019
    @sinbot Since Jamie showed how to size here's another spin on his example using only variables (no hard coded numbers). Advantage of variables (attributes in GS terms) is that you only have to change
  13. Why does actor color not change?

    Smclann
    by Smclann · February 2019
    I change my actor a color using the change attribute behaviour for each color option and it always white?
  14. Random Dungeon Generation

    SecretlyAnAlien
    by SecretlyAnAlien · February 2019
    I'm making a random dungeon generator for a game I'm working on. So far I've tried having one actor that spawns a room, moves, and use RNG with a table to change a game attribute to a random number wi
  15. Change attribute position X

    csmyersa
    by csmyersa · February 2019
    Change attribute behavior x=500 (far right of my screen)
  16. Random from 11111 to 5555

    tatiang
    by tatiang · February 2019
    Change attribute game.randomNumber to random(11111,55555)
  17. multi touch in Gamesalad, Windows.

    AlchimiaStudios
    by AlchimiaStudios · February 2019
    (Quote)
  18. multi touch in Gamesalad, Windows.

    four8games
    by four8games · February 2019
    I figured it out for you! In the Windows version you need to create a game level Boolean for the Device Touch, and use the change attribute behavior with a rule to turn the Game level touch attribute
  19. Free 2D Game Art for Your Projects

    Eric Matyas
    by Eric Matyas · February 2019
    At this point I’m experimenting with different styles and methods so hopefully I will be able to offer a good variety of things. Please feel free to modify / edit as needed. If you happen to find any
  20. Best way to spawn enemies in Waves?

    tatiang
    by tatiang · January 2019
    If it's lagging it's likely due to timers or constrain behaviors (possibly within the spawned actors) that would slow things down.
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