tarek2's Recent Forum Activity

  • The issue is the Tree as it has the "Z-Elevation" = 1

    All the objects on the same layer should be at the same z elevation if you want to use the z ordering (move to the Top or Bottom of the layer),

    If you are doing just a 2D platform game you can just leave the Zelevation always at default cero for all the objects to avoid confusion.

    I haven't done any 3D so not sure if that is how it should behave when they have different z-elevations.

    Edit:

    It is working as intended, here is the reference:

    https://www.construct.net/en/tutorials/using-3d-construct-2746

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I added:

    -Go to the Next track at the end of the current playing song

    -And Loop the track

    https://www.dropbox.com/s/jyukysl807tg053/Track_List2.capx?dl=0

    I may replace my "Groove Music" player with this :)

  • huge thanks tarek 2. this nice solution the only problem is these two sprites are clear what they do how I can loop the track on itself and how I can set it to go to the next track imported in the list.

    https://icedrive.net/s/WFj6jfGwf4t4gF7RWPRNhhxhCy7z

    Np Glad was helpful.

    I haven't done those buttons I left them for you as I wasn't sure how you will set it up.

    how I can set it to go to the next track imported in the list.

    You already have "Next Track" working so you can reuse the same events? or are you referring to something else?

    Check event 16

    how I can loop the track on itself

    Let me check

  • I did what you mentioned and i am able to get the data in the text box, any idea what the issue could be ?

    If it works then the Array should work swell on that layout as on a new layout + New Event-sheet it shouldn't be anything interfering with the Array.

    You can test loading the Array on that layout and if it fails press F12 to check the console logs and see if there is any error as it most probably could be a bug.

    Also, you can validate if the data is a valid Array JSON by printing it on the textbox as you did then copy the data and open a new empty project and add an Array and try to load the Array directly from that JSON string without using any Local storage and see if it works.

  • At first, I was gonna replay the same thing as Fedca as you dont use the "On Item Set" or "Wait for previous actions" when you save at the end of the layout but your picture shows that the Local storage has the Array Json saved so that's why I thought could be something else.

    You can do a quick test since the Local storage has the data:

    1-Create an empty Layout + Attach a new empty Event-Sheet

    2-Add a text box

    3-Add these events:

    4-Preview directly into that new layout

    See if it will print the data from the local storage into the text box

    If it prints the Data then the problem must be something else, if not then it could be the data corrupted, delete the key and save it again using the methods I mention above.

  • Right-click on the Array and choose "Find all references" to check if there is another event changing the values of the Array.

  • Im not sure I understood all the questions as your translator didn't translate all the sentences properly but from what I understood you just need to add tracks to one list either by (File Chooser or Add button) and also make the buttons work for (Next & Previous Track)

    another question can we compose the two file chooser the scent one should add the uploaded track to the first file chooser(URL) realized

    As I tried explained in my first post you cannot add URLs to the file chooser unless you click the button and choose the new files but it will delete all the previous file names and URLs, though you are thinking the wrong way as you can do the same thing in many different ways without using the file chooser to save the list of tracks, basically, the file chooser think of it as is just for adding tracks that's it, so to keep track of all the songs you use different plugins.

    Here is an example, I use instead (Plugin List & Dictionary)

    https://www.dropbox.com/s/q28k88nl1odpjsh/Track%20List.capx?dl=0

    You can add as many File Choosers as you like as you just keep using the same (List & Dictionary). If you add more file choosers you can just put all of them in a Family so you can use just one event to keep track of all of them.

  • 1-For the "News Sprite Movement" you can just add the Drag & Drop Behaviour

    2-And for checking if the News are (Fake or True) on Mouse clicked then you can just add an instance variable to the sprite

    Example:

    Variable = "News_State"

    Then on news created just set that variable "News_State" = (True or False)

    Then add the events as follow:

    On Mouse click News:

    Sub: "News_State" = True ------------------> Your Actions

    Else: is fake then >>>>>> Your actions (Replace the clicked News or Spawn another News)

  • Looks beautiful and the art looks very cute, congrats and good luck!

  • Dont use the "File Chooser" internal FileName List as each time you upload new files it will reset as you discovered, this is so you can always keep track of the last names of files that you uploaded, it is not meant to keep track of all the previous files that you uploaded. So Instead you can use the "List" Plugin to keep track of all the file names as you can keep adding file names to it, you can use one "List plugin" for all the file choosers or you can create each File Chooser with its own "List Plugin" if you need to.

  • > So what are you trying to do in the textboxes?

    This code should be clearer

    https://www.sendspace.com/file/3550lc

    The first thing I would like to understand is why when writing the letter "p" in the input text there is the word potatoes and not pear, I wish there was pear because putting the words in alphabetical order it comes first

    The problem is that you loop and add each matching value that it finds to "InputTestuale" textbox, that's why you see potatoes as you never stop the loop when it finds the value "Pears" first and because Patataos is the last word that it finds then it will be the one that last shows on the Textbox.

    You can avoid this by for example just adding a boolean to know when the first match value is found and added to the textbox so you dont add any more values after that.

    Here is an example:

    https://www.dropbox.com/s/gp9xg1sjgxdjtzr/fruits%20text2.c3p?dl=0

    Note:

    1-The wait for previous actions only works with actions that take longer than a tick to complete, you will see the timer next to them at the Right, so you dont really need it here.

    2-Remember to sort your Array before you start the Search Loop

  • The results on my project are unstable, sometimes the first is right and the other two are wrong, other times the first and third are right and the second is wrong, despite the variables being shown at the correct value. The only difference for your code, is that I'm using the "trigger once" event instead of using the "on start of layout", because this code is inside a function. Do you think this could be the problem?

    Some screenshots:

    Honestly, your questions are getting very weird you know that?

    How can I know what you did in your project? I don't know and honestly, I don't have the time for debugging your project.

    I gave you already two working versions and I just tested them again they seem to work without any bugs so whatever problems you having is on your side.

    You have 3 choices:

    1-(Copy & Paste) my exact code in your project and use that as it works 100%, I'm thinking why you didn't do that?

    2-Start Debugging your project as you do with any other game, I don't think it will take you long to find out what's wrong though. Again I'm thinking why you didn't do that?

    https://www.construct.net/en/make-games/manuals/construct-3/interface/debugger

    https://www.construct.net/en/tutorials/checking-for-errors-in-browsers-5

    3-Leave this project, as it looks, is too difficult for you and do some C3 tutorials to start learning the basics when you think you improved your skills come back to this project and you will see how easy was to solve if you just use the "Debugger" + some basic skills.

    I say this because if you have to come back with every little error you have then not sure how you gonna finish any small Game.

    I strongly recommend Option 2 but for this, you need to take the time and debug as you will learn from that also for your future projects. The problem I see is you are always in a hurry and that there is always a deadline to showcase the example etc... so that's why you don't take the time to study the examples or debug your own code so this is a big problem as Game dev needs time and focus.

    I think I helped you already with your main issue so for me, I'm gonna have to end here as I don't have time even for my own projects so I will pass it to anyone else who wants to give it a try, though I wouldn't recommend it as it looks like you are not willing to put effort to learn, sorry I have to tell you the truth, normally I wouldn't mind keeping going the back and forward as long as it takes but on this thread, I'm really scratching my head where are we going with this.

    Also, there is option 4 that just came to my mind:

    I'm pretty sure you can find it on Fiver or any other Services like that, someone that you can pay small money to so it can guide you and answer any questions you will have, like a personal coacher (24/7).

    And think this is the option that you are looking for as here on the forum I will be surprised if anyone will have the time for that when it could work on his own projects.

    I hope you don't take this too personal.

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies