Lou Bagel's Recent Forum Activity

  • The reason to use IDs is to uniquely identify each of the dialogue. So if you want a particular dialogue, you can retrieve it using its ID, whatever its index is in the parent node, and wherever it is in the document.

    You should always prioritize the use of attributes to distinguish nodes instead of using different tag names. The structure of your XML document will be much more robust and easier to navigate through.

    The tutorials I have seen on here have simply used IDs to number each node, id=1, id=2, Id=3, etc this could be replaced by tag[1].

    I will keep in mind to try and make use of attribute tags though.

  • Kyatric: I'm not sure what it is called exactly but node index seemed logical. Example:

    /bookstore/book[1] Selects the first book element that is the child of the bookstore element.

    For some of the examples I have seen it won't be different at all than using IDs but it can save a lot of work in some cases. A lot of times I have used xml has been for dialogue and intro/story where it is subject to a lot of change but I never have to change any id numbers or anything.

    The reason why I am asking is that not too long ago I knew nothing about xml. So I want to keep learning and figure out if there are better ways. Also, haven't done one before but was thinking about writing a tutorial on it.

    If you want to see some capx: (sorry, they aren't examples, just things I have worked on before, so lots of other stuff in them)

    Chooses random node (between 1 and node count):

    viewtopic.php?f=148&t=170355

    First time using XML, simply changes text every couple of seconds to the next line. Once at end (variable > nodeCount) starts over. I bookmarked the event:

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

    Something I'm working on now, bookmarked a couple of events. Can talk to people and just got it working where npc can ask you a question and have a response for each answer:

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

    Take a look at the XML sheets in some of these. The Construct events probably won't vary much from your examples but the XML is more straightforward and easier to read. I was looking at your examples and was having a hard time following the XML. Your way works, so there is nothing wrong with it, and it probably helps other people so great, but I didn't want to change my whole system so figured out how to work it with what I had already.

    Let me know what you think. That is why I am asking, not to be critical but to get your insight.

    Thanks

  • Well i better like the graphics of the big one. But the walking anims looks better on the small one.

    Thanks for the feedback—appreciate it. The first one would be a much smaller sprite than the second one.

  • : I'm not sure what you are talking about (as OP posting date shows, the tutorial is almost a year old now).

    Also, as usual with my tutorials they are examples of implementation only, not absolute truths.

    I know it is a year old but you just fed me a link to it. I'm not trying to be critical—I just feel like the way I mentioned is more efficient and I don't see tutorials use it...

  • Kyatric Is there a reason you used 'ids' instead of using node index?

    All of the XML tutorials I have seen set ids to numbers which is exactly the same as using the node index but makes it completely barbaric when you want to insert a line somewhere (have to update the id numbers after each change).

    Is there a reason for choosing this way? If you are not aware of what I am referring to I can provide an example.

  • Update:

    Check out the progress here:

    https://www.loubagel.com/survive-the-day/

    Previously titled: Which Sprite looks better?

    But changed the title as I already chose the first sprite:

    But still are getting posts (which is fine) so thought I would update.

    Slowly working on more art for this, just did this:

    I might continue to update here every once in a while for those that stumble across this, but probably won't post new comments (at the bottom) as bumping this post is not my intention.

    Thanks everyone

    Original Post:

    Which of these two do you like better?

    I was pretty much an absolute beginner to art a couple months ago. Recently I have been working on this character and have started over several times. Now I can't decide which I like better between the two.

    Can see the full animations here:

    http://www.badmoodtaylor.com/archive/040216/JanitorComparison/index.html

    If you are reading this please at least reply with first/smaller or second/larger (for which one you like better). Any feedback or pointers also appreciated.

  • Nah, you're just doing work for him.

    If you don't want him in, go campaign for someone else.

    Not campaigning here, I barely follow politics.

    Even friends/acquaintances/co-workers that barely follow politics have been talking about what would actually happen if he got elected. So it is a topic of interest right now. Right now I would take a look at any game similar to my idea as it is an interesting 'what if'.

    There are a lot of games, tv shows, movies about aliens/martians attacking Earth and such. Does that mean the creator thinks that if aliens do exist they would be 100% evil and we should kill them all? The scenario is playing on the fears of the unknown, it doesn't matter what the creator really believes. Realistically, if he was elected president I believe there is a high percentage chance that nothing horrible would happen directly caused by him (not trying to become a debate post though), but that would make for a pretty boring video game . . .

    I made a Trump Simulator where you protect the "Great Great Wall". But I changed the name to President Simulator instead and made a fictional president instead of Trump. He gets enough attention anyway Not as deep as your idea but its something x)

    Here it is if you want to have a look:

    ...

    Anyway good luck with the project

    "Not as deep" as my idea but the big difference is yours is a game and mine is just an idea. So kudos for making/finishing it. I will check it out when I get a chance, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone interested in making a game where Donald Trump wins the presidential election?

    First of all, this would be completely fiction of course. It would not be a prediction of what would actually happen more of playing off fears that people have of what could happen. For example, there is plenty of material here:

    https://www.quora.com/What-is-the-worst ... -President

    I have seen plenty more similar Quora posts and I'm sure there is a ton elsewhere.

    Off the top of my head I thought:

    You play as a Hispanic male deported from the U.S. but desperately need to return to your family (in the US) (maybe family member deathly ill). Your journey would not be an easy one. First you must get past Trump's giant border wall. Then you must traverse across a chaotic America, for example race riots in the south. Your travels will bring you in contact with diverse characters and unique situations. There will of course be some heavy moments but also contain notes of satire to lighten the mood at times.

    I just thought of this today, it would have to be done before October or else be pretty irrelevant, and I would need some kind of artists help at least. So a long shot, but thought it was worth a forum post . . .

  • I am using global variable called coins.

    Are you doing the following:

    Adding to 'coins' when the player is collecting them

    Comparing if 'coins' is greater than the cost of the item when a player tries to buy it

    Subtracting from coins when purchase is made

    If so, what else are you trying to do?

  • actually on second thought I actaully need the coins one, because If the past couple of days have taught me anything, it's that coin and high score are pretty different. Please Help!!

    Are you using a global variable for the number of coins?

  • ... Unlike the old asteroids where the ship would traverse the level when you go off the screen, I'd like to make the screen a border so the ship cannot leave it (but the asteroids can leave it), any good advice on the best way to do that?

    Isn't Bound To Layout behavior exactly what you are wanting?

  • don't you think that global variables would be better? I

    Depends on the circumstance

Lou Bagel's avatar

Lou Bagel

Member since 7 Sep, 2015

Twitter
Lou Bagel has 3 followers

Connect with Lou Bagel

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies