Help needed
Baccarda
Member Posts: 122
Hello everyone.
As some of you have noticed that in the past 2 or 3 days i've made a couple topics about my problem but in the end i did not found the answer, so i now i will try to explain it as simple as possible.
I've made an image which explains a bit how the game mechanics should look like.
- Clouds are spawning from one side to another and are not going any higher or lower if character is only moving on x asis.
- Clouds are still moving from side to side, lower, higher and spawning new clouds as the character goes higher.
I think that it should explain game mechanics. If there is someone who could help me, i could help that person with game designs or something like that as long as i can do it in photoshop or illustrator.
Comments
There are a few ways you could do that.
One simple way is when your bird is moving up, set an attribute like game.movingup to true.
Then, in your clouds, when game.movingup is true, you can have your clouds move downwards.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Maybe I'm misunderstanding but couldn't you scroll the camera by adding a control camera behavior to your main player? Like this:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Summation, i'm not sure if that would be the right solution for this situation, but thanks.
jamie_c, i have added control camera atribute and it is working fine for the character, i just can't get those clouds to spawn properly.
I have a set of 10 different clouds and i want them to be spawned randomly on each line, so that would make them look different each time. If cloud reaches the other side of the screen, then spawn another random actor in that line. I know how to get them randomized, but i cant get the whole thing together and make them move in correct directions - to sides, up and down accordingly to characters position.
I'm sorry but I have a really hard time following exactly what you want.
You say the control camera behavior is working fine for the character, but if that were the case when the character moved up the screen, the clouds would then move down the screen like you request.
You say you can randomize the clouds but then you say you can't move them correctly.
Can you just outline what you want to happen without saying what you have done or not done to date? Simply outline what you'd like to occur on screen?
Hope this doesn't come off as rude, like I said I'm just having trouble following what you actually want to happen.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I don't know if the attached is what you want or not, but check it out and see if it's close. There is no randomization of clouds, I was just after the type of movement you might be after.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
No it is not rude at all, i am glad that someone actually cares about it.
I just want them to be spawned randomly on each side and as the character goes higher, clouds go lower and if character is going lower, then clouds are moving back up. something like that, i want to make something like dash up game.
The only way i know how to do it is to make a very large scene and place those spawners manually but that would ruin games performance, so it would be better to replicate those spawners on a regular size scene to not lose any performance.
I hope that this helps
You are getting pretty close. something like that but the clouds would be spawning only at the top of the screen to not fill the screen too mutch. Just like in picture nr. 2. Character goes up - clouds come down and spawn new ones above them.
A new version is attached. This time I'm keeping track of the players Y position in an Attribute and using that Attribute in the spawners to spawn the clouds always 150 - 250 pixels above the player. You can adjust the frequency at which the clouds spawn in the Timer Behavior in each spawner as well as adjust the distance from the player that they spawn.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
That's even more closer. But clouds should spawn 1 at a time, not to fill screen too mutch, because the character will have to avoid those clouds.
@janis.piziks@gmail.com, I'm glad it close to what you need. You can adjust the speed at which the clouds will spawn in the Timer Behaviors in each spawner, increase the number to make clouds spawn less often or decrease the number to have clouds spawn more often.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
And about the movement. How can i make them move down and up accordingly to characters position and spawn new ones if character goes higher? :?
That happens in the demo i posted. Use the arrow keys to move the player...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I did not notice that the character is movable. It looks too god to be true.
U're GOD! ^^
lol, glad it's working okay for you.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page