« first day (640 days earlier)      last day (4383 days later) » 

10:00 PM
heh, yeah
so yeah: blog for yourself. I didn't realize it when I started my blog, but it's actually a lot of fun to look over your old posts. That's where my amusement comes from
 
@JohnMcDonald , I can relate.
Ok, this is annoying me. Stupid efficiency techniques on iOS. View recycling is gonna make me go mad!
 
10:32 PM
hey all
doing tile based movement, the draw method does its own calculation for the inter-tile position adjustment
 
If you're using XNA, as a general rule, you should avoid too much computation inside the .Draw method, especially if it's easy enough to do it it in .Update. :)
 
its not too bad i think.
let me show you somethin
@WilliamMindWorXMariager pastebin.com/d2xeFJh7
is that too much computation in the draw method?
 
Are you moving the entity in the .Draw method?
 
Since it has nothing to do with drawing, you really should move that to .Update.
 
10:40 PM
the actual movement of coordinates takes place in update
player position is coordinate based
 
Hmm, so it's just calculating the offset or something a long those lines?
 
exactly
it works well right now
 
Ah. Well, it could be done in .Update, but as long as it's not an issue, there's no reason to not stick with it. :)
 
You have to note that the Draw() method is not guaranteed to be called for each Update()
 
hmm
well here is what i was going to ask
the character heads stick up above their tile
 
10:42 PM
In this case it doesn't matter though, as it's just a rendering calculation and not a logic calculation.
 
so any character drawn after another will stand on the latter's head instead of sitting behind
does that make any sense? let me get a screencap
 
it does make sense
I think you just need to draw stuff from the Top of the screen, downward
or... sorry
Top down, what was I thinking
 
And remember to not manually sort it!
That's stupid programming!
 
@JohnMcDonald yea, thats what i need to do
 
If you're doing something like that, just use the "depthLayer" argument of the SpriteBatch.Draw method.
 
10:45 PM
so i need some kind of logic method
@WilliamMindWorXMariager the trick is that i need to draw based on the character's position from the screen like @JohnMcDonald said
 
@JMRboosties Yeeees? :P
 
anyone higher on the screen should be a layer behind
 
yeah, @WilliamMindWorXMariager is correct. There's a "depthLayer" that you can just pass in to the draw method
 
Which is why you should use the depth argument and let the SpriteBatch do the sorting.
 
yea
 
10:47 PM
You need to translate the position to a value between 0.00 and 1.00.
 
so in the main draw method, i need to sort the npcs and player characters based on their vertical coordinate
and give them an appropriate depth
 
No, you don't, you let SpriteBatch do that.
 
i guess im a bit confused
wouldnt i need to let spritebatch know which char should be draw first->last
 
Just pass a depth like this SpriteBatch.Draw(..., (-this.Y / screenHeight))
 
ohhh
lmao thats so simple
 
10:49 PM
Ehh, not exactly like that, but something like that, fiddle a bit with it. :P
 
i get the strategy though
thanks!
 
You also have to change the sort mode to SpriteSortMode.FrontToBack.
Or SpriteSortMode.BackToFront.
Again, fiddle with it. :P
 
haha will do
 
I spot a Super User here. points at @OliverSalzburg
grabs his torch and pitchfork
 
@WilliamMindWorXMariager Yeah, I've just been browsing through the rooms, looking for some activity :)
 
10:54 PM
We're usually kinda active here.
Of course, me and @John are responsible for like 20% of all messages, so I might be seeing more activity than most. :P
 
Heheh
I was mostly wondering what you guys are talking about here ;)
 
Uhm, the name of this room is Game Development, so I guess we talk about that... at times.
 
I have a brief history in 3D development, so, yeah
 
But mostly we just pester @Josh Josh with annoying remarks about how old he is.
 
10:57 PM
He's like REALLY old. Not even kidding. :|
Rumor is he knew Gandalf.
Soo, you're from Super User. I just got the Tumbleweed badge there. :(
 
Ouch :( What question?
 
0
Q: Turning on touch input without a touch device present

William 'MindWorX' MariagerI'm trying to find a way to enable touch style input in Windows 8. Specifically, I want to have the touch friendly user interface. I'm looking at doing an experiment where I use a Wiimote for input, and I think the touch friendly user interface would make the experience much smoother. I looked in...

 
I just got a quadruple badge the other day :D Still very proud!
 
What's Tumbleweed badge?
 
It's pretty specific I know. :P
@Damir Asked a question with no votes, no answers, no comments, and low views for a week.
@OliverSalzburg I've reached the reputation cap by answering how triangles work. :P
 
11:00 PM
And how come formatting doesn't work for me?
 
43
A: Why does my object move faster at 45 degrees than at 90 degrees?

William 'MindWorX' MariagerThis can be explained with the Pythagorean Theorem, which is the following formula: a² + b² = c² In your case, when moving right, you're using (x:1, y:0) which gives us c² = 1 + 0 = 1 c = sqrt(1) = 1.00 When moving up and right, you're using (x:1, y:1) which gives us c² = 1 + 1 = 2 c = sqr...

 
LOL
It does now
Funny
 
Damir, if you have multiple lines it doesn't work.
 
Ahhhh
 
This
**doesn't**
work! :(
 
11:01 PM
Thanks for clearing it up.
 
What's worse is @eBusiness should totally get some of that reputation, since without his edit, the answer was actually wrong. :P
 
@WilliamMindWorXMariager I did what I could :D But I only briefly looked into Windows 8 myself.
 
@OliverSalzburg <3
 
Windows 8 was weird in a VM.
I felt like a lot of the usability depended on being able to easily hit an edge or a corner of the screen to invoke a certain function.
That's kind of a problem if you run the thing in a window :P
 
Agreed. :P It's also the same reason I want the touch interface.
Hitting the corner with a Wiimote is tricky. :P
 
11:07 PM
Oh
How does the touch interface differ?
In that regard.
 
Actually not 100% sure.
 
I don't think I've ever really seen it.
 
But I can't imagine having to hit the corner as precisely with a touch device.
 
Indeed.
I don't really know how Windows determines if a touch device is present.
But I would assume that the behavior hasn't changed since Windows 7.
Meaning it might not be a Windows 8 specific problem (which usually scares people from answering).
 
That's probably right.
 

« first day (640 days earlier)      last day (4383 days later) »