Unconnected's Recent Forum Activity

  • How many animations do you have? It seems like 8.

    360/8 = 45

    Each animation is allowed 45 degrees.

    If you have 4 animations, then change 45 to 90.

    360/4= 90.

    Try

    Floor(Shot.Angle/45)

    This will round down to give a whole number as a result.

    0,1,2,3,4,5,6,7

    Or Try

    Ceiling (Shot.Angle/45)

    This will round up to give a whole number as a result.

    1,2,3,4,5,6,7,8

    Now compare the result and set the animations.

    0 will be right, 3 will be left..

    Im not sure of up and down...

    Set Variable :Floor(Shot.Angle/45)

    Variable = 0: do this

    Variable = 1: do that.

    Variable should be an instance variable.

    I personally wouldn't use a loop. It is setting the animation 8 times per tick instead of once.

    The first 7 times don't count because all 7 are overwritten by the 8th.

    Once per tick should be enough, unless I'm missing some info.

  • When I add an object and export it out of C2 and import it back to my image editor software it becomes 96 ppi no matter what. If I remember right, it used to export out to 75. I am aware of 75 being, or was the ppi limit on some systems.

    Is 96 ppi the new limit?

    Was it changed so importing into C3 would be easier?

  • Thanks I got it.

  • How do I add a newline built into XML?

    I'm wanting to make a preset list without having to make many text objects or worry about Word Wrap.

    1. Text:

    2. Text:

    3. Text:

  • Thanks again.

    One last question.

    If I have a key named the same as a variable, how do I use key name to set coinciding key to variable with same name?

    Would like to use a "for each" instead of doing 1 by 1.

  • Thanks, it saved me a lot of time.

    I get it now for the most part, I do have it working.

    I was missing ItemValue.

    I didn't know of it until now, It doesn't work without it.

    After a "Check Item Exists", do I have to add "On Item Missing" if I don't want to do anything if its missing?

    What does the action "get item" do if item doesn't exist?

    I think I don't have to add "On Item Missing" and "get item" doesn't do anything if item doesn't exist.

    I just want to confirm, because LocalStorage is asynchronous.

    I don't want to accidentally cause an issue.

  • Can I please have an example or a simple explanation of how to properly turn Dictionary Object into a Json String and place it in to LocalStorage, and how to get the Json String from LocalStorage and load it properly back into the Dictionary Object. I don't mind the use of 2 dictionaries to keep it simple, the concept is the same.

    I can make dictionary object make a Json, but it asks to make a filename and I'm not sure why. From LocalStorage object I can seemingly do it directly without making a filename or even using the "dictionary make json" action. I'm not sure how to load it back into Dictionary or if I'm even loading it into LocalStoage Correctly. I think my problem is naming the location of the Json to load in.

  • I'm a bit new on LocalStorage and Dictionaries, so I'm not sure if these are valid questions or if C2 is set up to prevent this.

    While a Dictionary is being turned in to a Json do we need to worry about a race taking place with the system wanting to update a Dictionary Key while it is being turned into a Json? I think there won't be, but want to make sure.

    What happens if player closes the game while a string is being written to LocalStorage? Is it allowed to finish?

  • I found Monaca.io

    It seems like a better solution than those two, but I haven't been able to log into it after making an account.

  • So am I right on organizing them? If a Hammer has ingredients of wood and iron then I would have three separate XML files.

    One for wood, one for iron and one with craftable items (hammer, basket, hat)?

    If user searches hammer then it will show wood and iron.

    If user searches wood then hammer will show up.

    If user searches wood and iron then I can compare and still bring up hammer since it is in both?

    If I search leaf and wood then hammer would not show up because hammer isn't under leaf.

    I assume I would compare the the leaf and wood XML and remove the ones that don't match.

    I am not sure how to do that. Would I somehow use an array to compare?

    Would this be the best way?

  • I would like to know how to make an advanced recipe book with 20+ different categories.

    It is for an RPG for crafting.

    It is going to have a lot of recipes so I think Ajax is needed to prevent loading unneeded files.

    I am not sure if I would use JSON or XML, because I am not sure how to organize it for search by name, type, and ingredients.

    Also need to know how to hide a few from search for restrictions.

    Such as level or if recipe isn't unlocked yet.

    An example Capx would be great, but an explanation would work as well.

    I am thinking I will need a XML/JSON for the craft that has the recipe and a XML/JSON for each ingredient that has the names of the crafts the ingredient is in.

    Would I do Category the same? How would I show the recipe list in alphabetical order?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Simple enough. Thank you.

Unconnected's avatar

Unconnected

Member since 6 Apr, 2016

Twitter
Unconnected has 1 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies