Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Lactose!

Member Since 16 Oct 2013
Online Last Active Today, 06:12 AM

#5224478 sfml sprite wont draw

Posted by Lactose! on 20 April 2015 - 07:03 AM

You draw in game.Update().

Then you clear the window, probably erasing the stuff you drew inside game.Update().

Then you display the cleared window.

 

As an aside, I would recommend splitting updates from draws, to prevent this kind of thing.




#5223767 Rate my Game Loop

Posted by Lactose! on 16 April 2015 - 01:00 PM

What you want to do is fix your timestep. This ensures your game's simulation behaves identically given the same input, even if frame rates differ. For example, a person with a slow computer vs a person with a super high-end computer.




#5223387 Hi there

Posted by Lactose! on 15 April 2015 - 05:35 AM

Welcome :)




#5219811 How do you motivate yourself for game design?

Posted by Lactose! on 28 March 2015 - 07:56 AM


The person who asks how to be motivated in the first place will never be the person who stays up all night to explore to its fullest his or her algorithm.
End.

The person who mistakes personal opinion and belief with absolute fact will have 17% less purple dreams than other people.

Bus stop.

 

 

Slightly more on topic: your post is falsifiable, since you posit it in absolutes. It is also false. I've had motivational issues and sought assistance with it, while later on sitting up all night with the very same subject.




#5219797 How do you motivate yourself for game design?

Posted by Lactose! on 28 March 2015 - 05:42 AM


Unfortunately, your following text doesn’t change my mind.
 

dreamer1986, on 28 Mar 2015 - 08:11 AM, said:
every one of you was highly motivated from the start, and kept their motivation high at all times? I find that very hard to believe

This lack of belief is exactly why I got my first impression of you.
If I wasn’t highly motivated from the start, why would I have started?

Your response seems to ignore the AND part of that question. [EDIT: Selective Quote messed up the formatting of the nested quotes, I tried adjusting it after for it to make some sense.]

---

Motivation can and will have periods of ups and downs. There are times you'll feel so motivated you'll stay up all night (even when you know you probably shouldn't), just to continue working on something because you enjoy it so much in the moment you can't stop.

But on the flip-side, there can and will be moments where even sitting down for 5 minutes might feel like a nuisance. This can be caused by a whole myriad of things, not all of which are in your control.

 

Like most people here have said already, you should figure out if this is something you really want to do. Does the thought of doing this kind of work for years and years sound like what you really want to do? The book suggested might help you figure this out.

 

Just be aware that motivation isn't a constant state. It will falter and it will rise, regardless of what profession or activity you're engaged in. It doesn't matter if it's work, a hobby, exercise or what have you. What I've found for myself, is that if you truly enjoy the profession or activity, motivation (on average) will remain high, even though there might be days where it's not like that at all.




#5219609 Global Consts

Posted by Lactose! on 27 March 2015 - 08:26 AM

const int four = 4;



#5219570 From scratch vs Unity

Posted by Lactose! on 27 March 2015 - 05:43 AM

It might also simply be because you enjoy doing it yourself.

 

Doing what you enjoy can be a huge boost in morale/productivity.




#5217041 Need help changing the date of a game

Posted by Lactose! on 17 March 2015 - 04:14 AM

Try playing to the last game in a year and saving.

Then compare that save game to a save game where you're at the start of the next year.

 

That might shed some insight into where and how the year variable is stored.




#5216941 2D vs 3D

Posted by Lactose! on 16 March 2015 - 04:17 PM

Short answer: start with 2D, progress to 3D.

 

There's a lot of stuff you'll learn while working with 2D games that'll be relevant when working in 3D.

Starting in 2D ensures you're able to learn those things, and be free to focus more on the pure 3D parts later on.




#5216288 How should i manage intro animation

Posted by Lactose! on 13 March 2015 - 09:48 AM


Anyway, my intention is to know the process of making animation for the intro of a game, a perfect example to understand what I want exists in any game made today, but to be even specific and of course the best example would be the game "cut the rope", which has an animation to tell the story of the game for example.

I am also aware that no one is obliged to work for anyone here, and my initial question was to find out whether someone could point me a source of information where I can begin to understand the process of doing this.

The answer can and will depend on the type of intro animation. This is why L. Spiro suggested you post a video of a intro movie in the style you were thinking about, so more appropriate answers could be given.

 

Without that, you generally have a couple of options:

- Prerendered movie -- potentially compressed with some movie codecs, or just a sequence of single images that are loaded and displayed in a simple/naive manner at a set pace.

- In-game, scripted or AI driven -- a special "mode" in the game in which either a specific sequence of actions (including things like camera movement, sounds, dialogues, etc.) is played. This could also include recorded player input. Alternatively, driven by AI so it's not the same every time, or a variation of the two.

 

Depending on the type and quality of intro movie you're thinking about, there's a lot of different methods and tools to use in order to achieve your desired result.

It's hard to give more concrete answers without more specific details.




#5210285 Enemy Bullets

Posted by Lactose! on 12 February 2015 - 09:35 AM

Thanks for the advice. In your example, what does the update() method do? I see a lot of examples with it and I never understood what it was for.

In this specific case, I would guess it Bullet.update updates the bullet's position (e.g. based on direction and velocity), and checks if it hits something (in which case, it modifies the bullet's dead variable).




#5209867 Code written inside a Render() loop

Posted by Lactose! on 10 February 2015 - 02:53 PM


He peeks one message, then renders, then peeks another, then renders. Look again.

Not quite.

Since PeekMessage returns non-zero if there is a message, only the if part will execute each iteration of the while loop, until there are no more messages. At that point, the else part will execute.

 

That said, I personally prefer the way you wrote it myself, but the way it is posted does consume all messages between each render.




#5209794 Looking for 3d engine suggestions for android+windows development.

Posted by Lactose! on 10 February 2015 - 06:47 AM


I checked the UE4 engine, and it seems to be 19 dollars per month + 5% out of 3k I would make. I honestly doubt I will make any money, and I would have gladly pay even 50 dollars for ue4 but having it as a 19€ monthly fee I probably am too cheap for paying at least for now.

You can pay for 1 month and cancel the subscription. You'll still have access to whatever you had access to, but you will not be able to get updates and patches until you resubscribe.




#5209612 Does games that were writen in "c" will be processed faster then...

Posted by Lactose! on 09 February 2015 - 09:59 AM


Some gamedev user

Actually, Donald Knuth. And the full quote is a bit more nuanced:

 

"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."




#5208203 Programming

Posted by Lactose! on 02 February 2015 - 09:42 AM


whether Spiro was male or female

Why does it matter? If Spiro gives good advice, Spiro could be a potted plant and it wouldn't change anything*.

 

Unless the post is about e.g. experiences which relate directly to being a specific gender (in a thread called "What are women's experiences in the IT workplace?", being female might mean you have first-hand experience instead of second-hand experience), judge the post based on its contents.

Allow poster history to create a context -- "does this person seem to generally know what they're talking about or not?".

 

Incorrect pronouns are easily corrected if someone guesses wrong.

 

 

*Ignoring the fact that on the internet, you are a dog as far as I care.






PARTNERS