WHAT is WRONG here? Help with Angry Birds style

  • Hello folks,

    Can you take a look at this project, which is an example given by C2? It is a angry birds catapult style.

    I have added one sprite that on clicked should restart the layout, in this case I used the "go to layout" event, because later i'd like to use this "buttom" to go to a random layout every time.

    So when the layout starts the pig collapses and cant be shot anymore. It should just restart everything, no?

    Please help me fix this as the event sheet is gonna be used for another project I will launch on Google Play store.

    Also , can you help me add more pigs that can be used one after another like on angry birds? You get bonus karma if you can make a way that when the spiral sprite is clicked it does to a random layout everytime.

    THANK YOU ! LOOKING FORWARD TO SEEING YOUR CREATIVITY!

    HERES THE .CAPX:

    https://we.tl/70wj92mFZX

  • Hello folks,

    Can you take a look at this project, which is an example given by C2? It is a angry birds catapult style.

    I have added one sprite that on clicked should restart the layout, in this case I used the "go to layout" event, because later i'd like to use this "buttom" to go to a random layout every time.

    So when the layout starts the pig collapses and cant be shot anymore. It should just restart everything, no?

    Please help me fix this as the event sheet is gonna be used for another project I will launch on Google Play store.

    Also , can you help me add more pigs that can be used one after another like on angry birds? You get bonus karma if you can make a way that when the spiral sprite is clicked it does to a random layout everytime.

    THANK YOU ! LOOKING FORWARD TO SEEING YOUR CREATIVITY!

    HERES THE .CAPX:

    https://we.tl/70wj92mFZX

    i have added a new condition and a new layer with parallax 0 for the sprite 17, and maybe something else, I can not remember <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed"> , check .capx <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    https://drive.google.com/open?id=0BwNG7 ... m16bWNsR3M

  • Hi Thank you very much for fixing the Restart event Thank you

    Do you know by any chance how I can generate a random number on every layout start and save that number into a global variable?

    It seems that's the way for me do do the random layout thing. I want to have a buttom that goes to a random layout on pressed. Any thoughts? I have zero coding habilities

  • Hi Thank you very much for fixing the Restart event Thank you

    Do you know by any chance how I can generate a random number on every layout start and save that number into a global variable?

    It seems that's the way for me do do the random layout thing. I want to have a buttom that goes to a random layout on pressed. Any thoughts? I have zero coding habilities

    Instead of "1" value, in "go to layout" action, put this "choose(1, 2, 3, etc)" all your layouts number

  • but I don't have that option, can only select an specific one from a list:

    https://imgur.com/a/6gZM5

  • System -> Go to layout (by name) -> "Layout " & choose(1,2,3)

    You can do something like this if you don't want to restart current layout:

    And get rid of spaces in layout names.

  • Thank you NN81 and dop2000 it works like a charm <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    interesting game you have dop2000 you wanna check my app? https://goo.gl/e1o1Np

    do you do well on daily ad revenue? im starting to learn it and doing better

  • I released Doptrix almost 6 years ago. It didn't make me rich, but I can't complain

    The mobile games market has become much more competitive since then..

  • My goal is to make US$10 a day, then I will really consider quitting my job and focus on app revenue

    thanks

  • farfetchd83 if you don't want to restart none of the previously completed layouts, you have to program it a bit different, but you can do that too!

  • NN81 thanks again

    its ok if everything restarts. I'm actually creating this "go to random layout" buttom because I dont know how to make the save game on the phone hahah so this way people can just go clicking until they find a level they wanna play, and make like 100 levels available.... the idea is not to have a game to score and stuff, just for quick fun

    But I really wanna learn how to make regular levels, complete one then go to the next, and have a map selection and your status is saved... Is that too hard to do?

  • NN81 thanks again

    its ok if everything restarts. I'm actually creating this "go to random layout" buttom because I dont know how to make the save game on the phone hahah so this way people can just go clicking until they find a level they wanna play, and make like 100 levels available.... the idea is not to have a game to score and stuff, just for quick fun

    But I really wanna learn how to make regular levels, complete one then go to the next, and have a map selection and your status is saved... Is that too hard to do?

    it's easy if you know how to do it, finish a level go to the next and save the game, there is a dedicated quick save / load function so just have a menu with a voice to tap to recall it. And at each level start, overwrites the slot.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • in catapult physics templet how can I move the block according to pig and on touch end spawn another pig too hit again anyone knows please help me.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)