dop2000's Recent Forum Activity

  • TRMG Creating this data manually keyframe by keyframe would be a really long and boring job and the results may not be very good.

    Why don't you look for a special software that can create simple animations and export them in text format?

    That guy used Adobe Flash, I had some experience with it and it's a great tool for creating animations.

    I watched the video again, he actually exported animations in JSON format, not XML.

    So you'll need to parse JSON strings, I'm sure it's doable and still must be much easier than preparing all animations by hand.

  • If you google "Construct 2 XML", there are quite a few tutorials.

    I assumed you want to use XML files because the guy in the video used it. (at least I think that was XML, not sure)

    You might choose CSV or some other format to store animation. By the way, how are you going to prepare all these animation sequences?

    I personally prefer CSV, there are a few handy plugins by rexrainbow to work with this format. One called CSV2Array, so I'm guessing it can parse CSV directly into the array:

  • Man, no offense, but this is the most terrible project I've ever seen. It's a total mess..

    It's absolutely impossible to figure out what's going on and how is it supposed to work.

    You have 20 sprites and all of them are called "SpriteXX"?

    Layout has 11 layers, most of which consist of just 1 object?

    Variables called "obj" and "src"?

    And your project size is 40Mb?

    I'll try to guess what your problem is.

    You want your animation to stop on frame 16. After that user should click red button and the animation will continue. Is this right?

    Your mistake is that even when you restart animation, it gets stopped again on frame 16.

    Here is one of the ways to fix it:

    The proper way to do it would be splitting your animation in two. After one animation is finished, wait for user to click the button, then start the second animation.

  • I use postimages.org or imgur.com

  • Boolean attack is the deadliest of all!

    FabianB please save your project as CAPX file, upload it to dropbox and share the link.

    It's not possible to help you without seeing your code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Scrap my previous comment, brunopalermo gave me an idea how to do this <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I made a demo:

    http://doptrix.com/C2/BoatWalking/

    capx

    Shadow object is for simplicity and to demonstrate the idea. You can do it without it.

  • Your plan seems good to me.

    I would probably do this with one 2D array object with a couple of instance variables.

    Store all animation sheets in text files (CSV, XML) and load them into the array when you need them.

    Say, when player picks up a new sword, you open LongSword_animations.XML and create a bunch of AnimationArray instances:

    1. create AnimationArray, set variable object_type="LongSword", animation_type="idle"

    2. create AnimationArray, set variable object_type="LongSword", animation_type="attack"

    etc.

    Then you fill in these arrays with data from the XML.

    You'll need to code a bunch of functions, but you'll only have to do it once and will be able to reuse them for all animated objects.

  • In layer properties you can set layer background to black and transparent=No.

    Or do you mean something else?

  • I think there always will be a "parabola effect". You can minimize it a little, but it will still be quite noticeable.

    If you can predict how the boat is moving and calculate where the target location will be at the end of the movement, then you can move your character in straight line directly to that position.

  • How do you change that second object animation? Sprite->set animation or Family->Set animation?

    When you create a sprite which is part of a family, you can't immediately refer to the Family in the same event if you want to change anything about this sprite. I think it's because this sprite hasn't actually been added to the family yet.

    You need to wait a tick or use "On Family Created" event.

    The problem with using "On Family Created" is that you can't pass any parameters to it (obviously), so here is a workaround. You can pass parameters to a function, where you pick family member by UID and then do whatever you want with it:

  • It's still not clear what you want, but the problem may be with Set Animation action.

    You need to specify animation name, don't leave it empty ("").

    If this doesn't help, please share your project CAPX file.

    Also, next time before posting to this forum please try naming your sprites properly - Knife, Phone, Screen etc. Same with variables - what "obj" supposed to mean?

  • You do not have permission to view this post

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 22 Dec, 2024

Twitter
dop2000 has 252 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies