-
Spawning actor from table store
by Nspeel ·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 -
Spawning actor from table store
by JB makin' a game ·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 -
Spawning actor from table store
by Nspeel ·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" -
Spawning actor from table store
by tatiang ·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 -
Spawning actor from table store
by Nspeel ·I'm going to add a function to my buy button (store scene) to change global attribute +1 -
Spawning actor from table store
by tatiang ·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. -
Spawning actor from table store
by Nspeel ·So when you go to buy a tower my code entails (change attribute money -5, unpause game, spawn actor) -
Draggable Objects going through walls
by Armelline ·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 -
Draggable Objects going through walls
by tatiang ·(Quote) -
Draggable Objects going through walls
by ucjugh0 ·Constrain self.Position.X to min((768-self.size.width/2),max((0+self.size.width/2),mouse.position.x)) -
Draggable Objects going through walls
by Armelline ·Constrain self.Position.X to min((768-self.size.width/2),max((0+self.size.width/2),mouse.position.x)) -
How to interpolate scale using expression
by RowdyPants ·@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 -
Why does actor color not change?
by Smclann ·I change my actor a color using the change attribute behaviour for each color option and it always white? -
Random Dungeon Generation
by SecretlyAnAlien ·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 -
Change attribute position X
by csmyersa ·Change attribute behavior x=500 (far right of my screen) -
Random from 11111 to 5555
by tatiang ·Change attribute game.randomNumber to random(11111,55555) -
multi touch in Gamesalad, Windows.
by AlchimiaStudios ·(Quote) -
multi touch in Gamesalad, Windows.
by four8games ·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 -
Free 2D Game Art for Your Projects
by Eric Matyas ·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 -
Best way to spawn enemies in Waves?
by tatiang ·If it's lagging it's likely due to timers or constrain behaviors (possibly within the spawned actors) that would slow things down.