I know i can use replicate to make a grid of tiles (using one actor). but what i want is to move around and destroy the tiles as i move...like in Boulder Dash
You will want to create an actor that has the width and height of your preferred grid space. Lets name it "Block (Destructible)". You will also have your player actor. Lets assume that is named "Player". You will put the following code in the Block Destructible actor within the Game inspector window.
Rule: When (All) conditions are valid: (Actor receives event) (overlaps or collides) with (actor type) (Player) { (Destroy)
}
This will give you a block that will be destroyed when the player runs into it. Just drag them into your scene and arrange them to your liking. This block template can have whatever images loaded into it and it will still be destroyed in the same fashion. Good for using the same actor with different pictures to make levels look different.
Enemies in Boulder Dash do not destroy the same blocks the Player can. You will want to put this code in the "Enemy" actor to keep them in the spaces between blocks.
(Collide) Bounce when colliding with (actor of type) (Block (Destructible))
well that kinda helped.... this is what i need help with....
1. I need a player that moves in a grid made of tiles that are 32 X 32. Right now i have a player that moves with the arrow keys (up, down, left, right) but if two keys are pressed, say right and down, the player moves at a diagonal....also the player can move over two tiles at a time, this is NOT what i want. so what i need is more like a Pac Man movement
2. is there a way of making a grid of 32 X 32 tiles (actors) automatically? like 20 tile actors across and 15 tile actors down each actor having its own collision? Or do i have to place each one down by hand (witch is very hard to line up and a pain in the butt)
3. how do i get a actor to have its own gravity (with out checking movable) ex: a player digs under a "rock" and that rock falls blocking his path.
AND By the way.... for those who like making tutorials.... a Pac Man type of tutorial for GameSalad would be awesome!!!!!!
tshirtbooth said: open game salad and search for grid ... code monkey has a GREAT demo you can start with
cheers
Hey Tshirt....why not make a more in depth tutorials like a Pac Man type of game. (like 3 parts or more) and have a monthly membership on your site that only paid members can access. you can still have the free one part video tutorials but this would be more....call it GSHelperPRO.com
just an idea for you to get more money from me ...lol
Comments
Rule:
When (All) conditions are valid:
(Actor receives event) (overlaps or collides) with (actor type) (Player)
{
(Destroy)
}
This will give you a block that will be destroyed when the player runs into it. Just drag them into your scene and arrange them to your liking. This block template can have whatever images loaded into it and it will still be destroyed in the same fashion. Good for using the same actor with different pictures to make levels look different.
Enemies in Boulder Dash do not destroy the same blocks the Player can. You will want to put this code in the "Enemy" actor to keep them in the spaces between blocks.
(Collide)
Bounce when colliding with (actor of type) (Block (Destructible))
Happy Designing
this is what i need help with....
1. I need a player that moves in a grid made of tiles that are 32 X 32. Right now i have a player that moves with the arrow keys (up, down, left, right) but if two keys are pressed, say right and down, the player moves at a diagonal....also the player can move over two tiles at a time, this is NOT what i want. so what i need is more like a Pac Man movement
2. is there a way of making a grid of 32 X 32 tiles (actors) automatically? like 20 tile actors across and 15 tile actors down each actor having its own collision? Or do i have to place each one down by hand (witch is very hard to line up and a pain in the butt)
3. how do i get a actor to have its own gravity (with out checking movable) ex: a player digs under a "rock" and that rock falls blocking his path.
AND By the way.... for those who like making tutorials.... a Pac Man type of tutorial for GameSalad would be awesome!!!!!!
thanks, Steve
just an idea for you to get more money from me ...lol