DreanSan's Forum Posts

  • You do not have permission to view this post

  • Hello I have few things for my games that I couldn't do so email me on blackworld088svv@gmail.com to discuss the thing that I need.

    Tagged:

  • hello if your still available can you please make for me 2 things email me please blackworld088qvv@gmail.com

  • You mean you have a shop and then a character select screen? It's more complicated than me just explaining how to do it. You can use global variables to decide if a character is locked or has been bought. Then on the selection screen you check if the variable is 0 or 1 maybe and that decides if you can select it.

    selecting is simple but global variables to decide if a character is locked or has been bought is kinda complicated. so if global var = 0 char not bought and if it = 1 then char is bought ?

  • Hmm I would ask why can't you do it on one screen/layout ?

    buy the character then selecting it ? i am not sure how to do it T_T

  • hello i am trying to set a price for each character then the player after buying the character he will be able to use it.

    so what i did was 2 layouts: the first one character sprites if you click one it will show you a menu yes to buy and no to go back, so for the buying part it will subtract 100 gold from your total gold and it is subtracting then to choose a character you have to go to the 2nd layout to select what you bought but how to transfer the character to the 2nd screen. also for the the first layout i am stuck i kept clicking yes to buy but the menu wont go away even though coded it like this (gold>=100)do this(set menu and the bought char invisible).

    *if there is a better way please let me know.

    thank you guys <3

  • In order for that to work you will need to save with local storage

    I really appreciate your help <3

  • I'm not exactly sure what are you trying to achieve, but you can use a tactic like this to switch between layouts https://drive.google.com/file/d/1dpemx3kUp0zhMtIjIvehEEHOzf51OWav/view?usp=sharing

    thank you for your help <3

  • Add an array to your project

    On start of layout add all the names of the object types (your sprites)

    Start your layout with with the first object type name in your array and delete it from the array immediately. Use "create object by name" and use the name you popped from the array.

    do it until the array is empty

    Hope that helps

    cheers!

    even when i reopen the app they will be deleted right ? :) <3

  • How do I create a random get sprite But after you Get it Once it will be deleted ?

    *What I am trying to achieve here is to receive one random character in one layout then move it to the Select Layout and make it available to players to select And it will not be avaibale again in the random character Layout.

    *one of the videos that helped me but struggling with the delete and to make it on the start of the layout.

    youtu.be/vmkwx70_5a8

    *another video: youtube.com/watch

  • Not sure I understand, your old logic was fine I just said replace that line

    Sadly my old logic didn't work and I did add the line and everything.

    So I gave up and watch that YouTube video and it works but I have to click the first button to shuffle the sprite frames and the second button to show the random sprite.

    But that's not what I want even though it's a progress so I tried to tweak it and make it on the start of the layout randomize and show the sprite but it won't work and I tried a lot of way still no progress 😣

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > > It's create object array.at("random_chibi"). remember "random_chibi" is just a number.

    >

    > yeah a number linked to link it with the array since the frames of my sprite are 10 from 0 to 9 so array value = 0 is set to a frame as i mention above.

    >

    > sadly its not creating a sprite T_T

    Did you replace the logic as I mentioned?

  • youtube.com/watch

    so what i did is copied this guy's way and it works but i have to press 2 buttons to make the random sprite shows.

    also i want it one button but its not working and i tired one array but it didnt work too, also tried on the start of the layout which i want the most and yet its not working.

    please help me,

  • > oh it matches the second SH1 i have to change it but it says Save failed

    It should be matched with the first sha1 not with the second, you can only test in android after build with Cordova.

    signed android apk ?

    i downloaded the app on my phone clicking sign in button to put my username and password but it wont open.

  • The first sha1 is created by Google's app signing and the second sha1 is the signature that you created. Check whether the first sha1 is matching in GoogleApis under credentials OAuth client is for android, it will be like so

    Both the sha1 should be same.

    still got the same error

    Error 400: invalid_request

    Storagerelay URI is not allowed for 'NATIVE_ANDROID' client type.

    T_T T_T T_T T_T