AnD4D's Recent Forum Activity

  • Hold on, let me have a go with a capx, be right back :)

  • That's very kind. Do you want a packaged Tizen wgt packaged from the sdk?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TELLES0808

    This works great with arrays rather than sprites, as you don't need to have them on any layout.

    Thanks to you and PixelHero

  • TELLES0808

    Sometimes when I test my game, I'll jump to certain points in the game. I'd rather not have to jump between each level each time.

    Thanks for your help!

  • Yeah, just tested this, and I can't change local variables unless the sprite is on the screen.

    Also tried using an array instead of a sprite, and it works fine.

    Still, if it's possible in the future, I think it would be useful to be able to group global variables for those of us that plan on having dozens and dozens.

  • TELLES0808

    Does this mean the loading level (or level with the sprites in) needs to be accessed at least once for the sprites to be originally created?

    If that's the case, I won't be able to just open a random level and test it. This would mean that Global Events would be easier, and I could just put up with long lists :)

  • Ashley - Would a global array be better than a global sprite? I need to add sprites to layouts, and I'm wondering if I will need to have the sprite appear at least once, or every time I want to make a change, will I need the object to appear?

  • PixelHero

    I like the idea of using the array. How do you add persist? You mean just global? You can't add behaviours to arrays.

    I've recently started using that first method, and I'd rather use global events as I feel it would make things easier for me in the long run, but without groups, it will turn into a massive list when I come to call them.

  • I'd like to know the best method for grouping a series of global variables together.

    To explain better, I'd like to make a game that includes many different variables, grouped into different categories, such as:

    Intelligence

         Learning

         Knowledge

         Memory

    Physical

         Strength

         Agility

         Speed

    The list goes on. As you can see, I currently have 6 as shown above, and would eventually refer to these frequently. I'd like to be able to group them so that I can locate them a lot quicker.

    Is the best way to do this to just make a sprite or something, name it the group, and work with instance variables instead? The problem with this method is that I want these 'stats' to remain throughout, so I guess I could make the sprites a global object, but I was hoping there might be an easier way someone's thought of.

  • jayderyu

    In my game I have a variable that has dt taken away from it every tick. This is the timer. I have a physics object that is constantly pulled in directions using force.

    Without dt, at 60fps, it's fine. On my mobile device, on occasion it's so slow the timer manages to run out before the physics object manages to drop. If dt is already on physics objects, why does this happen?

    If I add dt to the force, it seems fine on my mobile device. I'm so confused. I'll switch it back to without dt, but I'm not sure what's going on.

  • Instead of every tick, change it to every 0.001 seconds? If using DT gives me the effect I want, how should I not use it?

  • Ashley - When I do not use dt with force in my game, the physical objects move slowly on mobile devices, even with framerate independence on. When I use DT, the physics moves as expected. This was a change I made only yesterday, and it improved my game somewhat.

    Not sure what else I can do then. As I said, force doesn't appear to be working for me the way I want it to without DT.

    It's only when I use the new frame rate half function that things break now.

    What are my alternatives?

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-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
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies