GDNet+ Standard
  • Content count

  • Joined

  • Last visited

Community Reputation

11385 Excellent

About Lactose

  • Rank
    Advanced Member
  1. That doesn't answer any of my questions.
  2. Do you know how "auto" works? Where is the "auto timeStampPrevious=chrono::time_point<chrono_high_resolution_clock>;" line located? Where did Josh tell you timeStampPrevious variable should be?
  3. Josh's reply covers that part.
  4. Which part(s) of what you said are you having problems with? 1) Drawing the sprite. 2) Waiting for a period of time. 3) Drawing another sprite on top of it? This was explained to you in a previous thread you made. Was the explanation not clear? If so, what was unclear about it?
  5. Using the navigation bar at the top: Activity --> Search. It is supposed to be upgraded/improved somewhat later on -- there's a comment from khawk about it here: Edit: Woops, didn't notice there was another page of replies.
  6. Is it possible to create a stream which contains all forum threads in a given sub-set of forums? E.g. create a stream that contains all threads/posts that appear in only the AI + Math & Physics forums.
  7. struct test { int a; int b; }; Quoted test.
  8. Your constructor is wrong, and you are using uninitialized data. When you draw, you're copying the uninitialized values from the member into the rect, and then you attempt to draw. x = x will assign the value of argument x to itself -- it will do nothing. To refer to the member's x value, you need to write "this->x". This is because when you just write "x", there's no way for the compiler to guess which "x" you want to refer to. Because of this, it will always pick the values passed into the function. Thus, you need to write "this->x = x;" -- and similar for the other lines. In case you're wondering, all class and struct instances have a "this" pointer, which is what we're using to solve this problem. Another solution would be to rename the argument values to something else. Either will work, but it's important to understand why the current code is broken.
  9. Sounds like uninitialized values somehow. Show how you create the GameObjects after "start" and add them to the vector. This probably also means showing the constructors you use for the relevant classes. You said you checked the values of the SDL_Rects and got those bogus values --when? Inside the Animation object, or somewhere else?
  10. My first thoughts were opposite to Alberth's idea. Note that this is all untested. Fill a grid cells that are all the same size (smallest size wanted). In your example image, it looks like there could be 8x8. Randomly select a cell, and merge it with an adjacent cell if the dimensions match. Alternatively, mark all cells as unused. Then select x of them and give their own identifier. Grow them to merge with adjacent cells if they are unused. At the end loop over and deal with e.g. non-rectangles and any potential other cases.
  11. I agree with everything Avalander said. Additionally, I would also stress that if you are working in a team and you are doing something which might affect the workflow of others, communication is vital. Whether it's a quick check to make sure you're not both trying to fix the same bug without knowing that the other person is doing the same, or for planning out more large-scale tasks. It's also important that, when (not if) things don't go exactly as planned, you are able to communicate with others and quickly find the best way forward.
  12. Understood. Did the lazy way of just copying & pasting for now. Will report any new stuff I might happen across as their own thing. Liking the notification thing without having to refresh.
  13. Do you prefer bugs to be submitted individually, or are you ok with a single submission with a collection?
  14. Member tags are listed multiple times on profile (left of post). Examples in this post (LemmyLen has multiple GDNet+ listed, L. Spiro has 2x Crossbones). Display names seem have to reset to login names(?). There doesn't seem to be a way to change display name, only view display name history. In the profiles listed to the left of the post, member names now wrap very easily. L. Spiro's current displayname wraps. On desktop at least I would expect this to be a wider box or something. A lot of names will wrap quite badly with the current setup. You can seemingly vote in Lounge now? What's a pixel? Some threads are listed as 0 replies in the forum view, even though they have replies. (Lounge --> "I want to get unbanned from the gdnet discord's server." is an example of this.): There's a broken image URL in profiles: It looks like my last journal was just deleted? I can't find it anywhere. I see 2 older blogs I created, but the last one is seemingly just gone. Blogs/journals -- there are 2 page navigation bars (where you can go to a specific page of blogs). The bottom-most navigation bar seems to affect both the top (tiled preview?), as well as the bottom (more in-depth preview?), while the top-most one seems to only affect the bottom-most previews. Blog preview (not the tiled previews, the previews underneath) seem to have formatting issues at times. Printing bbcodes or something. I'm still seeing ads as GDNet+. AdSense ads, by the looks of things. This is also linked in the profile box here to the left of my post.