Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 27
1  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-18 22:55:46
I should have been more specific. I wasn't really talking about thousands of people rushing Notch when he walks down the street. I was more thinking *places he would want to hang out before he was famous* like gamedev expos, hackathons, game jams, etc.

But my central point is that Notch has *the right* to do whatever he wants with his time, including selling *his* product or retiring or whatever. The fact that people in this thread have called him a sellout sorta proves his whole motivation: exhaustion from constantly being criticized for crap that *isn't true* or *doesn't matter*.

Well, the reason he's being labeled a sellout isn't actually because he sold out. It was because of the image of himself he created. Yes, people can put their own made up pieces together to makeup the personality of Notch, I'm sure Notch "the person" is nothing like what most people think. But the reality is, the puzzle pieces most of us are looking at in this situation are the ones he gave us. If he hasn't of made bold strong statements against big gaming businesses and then "sold out" to one people wouldn't be in an uproar about it. No matter how much people try to sugar coat it or give him the benefit of the doubt, in the end he's a hypocrite. You absolute do not make some of the claims he did, and then sell to Microsoft without being one.

He does have the right to do what he wants, I'm not arguing that for a second. My only beef is his hypocritical nature of going about it; you can't build yourself up as someone who's anti-big gaming, then sell to one without getting a lot of flak. If he hadn't of made all these wild statements (that, surprise surprise, are also why he as a person, is famous) he could of sold to Microsoft and absolutely no one would of cared what he did, and maybe they'd just be concerned for their own reasons about what MS will do to Mojang.

There's no was to excuse Notch's behavior has anything other than hypocritical, he's the one that told us his feelings about big gamedevs and software companies ruining the industry, we didn't make that up. It came right out of the horse's mouth. You also can't argue the "well maybe he was just burned out" because he could of easily just stepped down and retired. If anything, the way he went about this mess just turned him from "famous" to "infamous". So I call BS that this was about getting out of the limelight, if it was, he could have just given his part of the company to the other two owners and left.

So my end point is: Everyone is pissed not because they don't think he has the right to do what he did, but because he's a hypocrite who backed the little guy's, then sold out to a big guy.

EDIT: Fixxred Grammars
2  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-18 21:27:28
It takes one to recognize you, and then everybody else notices. Then you're surrounded by kiddos that think you owe them something because they once paid $10 - after having just spent $15 at Mc D. If you walk the mall three times a week, and it happens once a month, you're going to feel uncomfortable. I'm not saying that what you say isn't correct, it's just not fully thought through Pointing (trollololol)

haha, yes, that's very true. It really does only take one and then it's all downhill from there.

Speaking of price (semi-derail alert!) I have always found it odd how people pay $10 for a game and feel "entitled" to an infinite years of dedicated bug free content packs and patches, but yet the Pizza they ordered last night was $20.
3  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-18 21:17:41
I get what you're saying Kevin but that is not what we are talking about actually.
Notch isn't George Clooney

people outside of games dont know him, in general people on the streets dont know any game dev, let alone how we looks and what the image is, and his family and shit

plus leaving mojang is going to change ZERO about that popularity. You have to go "off the grid"
and that you could do even when you were still working there

"Well just use a fake account and set up secret identities" - glossing over how messed up it is that that's even necessary,
No thats the meaning of being famous. Also lets not forget not ALL hugely successful games have famous game devs, only if they choose to talk to the media directly, which is usually a marketing/PR job anyway.

it's pretty hard to stay anonymous, especially if you're already famous. Somebody is going to make a connection or figure it out,
I dont really think so. If you just make any name / account and post random games, it seems very unlikely and even once it happens many people wouldnt buy into it.

and then you get flack for "trying to hide" in addition to the normal crap you get.
Thats such a super pessimistic outlook - if your secret stuff is that good, that it too gets so popular, thats something to be happy about. I guess its a state of mind.
And no intelligent person would ever attack any famous person for trying to hide and not get noticed. and who cares about those other idiots.

not trying to attack his decision or whatever, whatever makes him happy I dont really have an opinion, I'm just saying...

As someone who lives in suburbia, on the East Coast, I can tell you that you would be wrong. The amount of moms that know who "Notch" is, have seen his pic, or sat through the millions of let's plays on YouTube makes him among the most famous of game designers in the mass space. I would venture to say that more kids know who Notch is than Shiggy. True story.


You're all forgetting the disconnection between fame and reality. You'd be absolutely dumbfounded at how many celebs can just wander around the streets and never get noticed. Humans have a funny habit of separating the facial recognition areas of the brains from "Internet/TV" and "Reality" and have a hard time intermixing them. The honest truth is, if any of us (yes, even us) went to our local mall, and Notch walked by us, we probably wouldn't even notice. Now, multiply that with the fact Notch isnt a TV/Movie celeb, most MC fans don't actually see his face on a regular basis. His recognition level is probably closer to that of famous bookwriters like Steven King. . . would you recognize Steven King if you werent actively looking for him in a crowd?

Like Cero said, Notch isn't George Clooney, and quite frankly, Notch isn't really all that unique looking. The only thing that makes him really stand out is that silly hat. Cheesy
4  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-17 01:47:42

It's what I would do.  Pointing
5  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-17 01:43:44
I like to think I have just the right amount of not giving a f**k to handle the kind of "pressure" that Notch and Flappy Birds guy can't handle. Bring it on! Smiley
For the amount of money that notch got from minecraft, I too am willing to challenge the pressure of handling such games Grin

Not to mention he kinda just up and quit all serious development of, well, anything, for the past 2 years. He's just been playing around mostly. Smiley
6  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 21:20:03
If it's luck then it is thousands and thousands and thousands of lines of luck. He's made many games but chose to invest real effort in this one.

To be fair, he didn't start investing real over-the-average effort until after it took off. In the early indev days it was just another one of his many toys. Once it became his largest project, he gave it more love (as any of us would do). Smiley

Attention can be a huge motivator, if any one of us had one of our projects suddenly get a thousand people interested you bet we'll start working on it more than any other project we've worked on since then.
7  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 21:11:34
I dislike attributing 'luck' to successful games but I do agree Minecraft took off because it's a catchy and fun game that got picked up by the right people, at the right time, in the right websites, and boom: popularity explodes from there.

I completely agree, I absolute hate (with a searing passion) when people attribute luck to sucess. It's almost always a result of hard work. Is there a tiny amount of luck? Of course! Some people just get the shit-stick, while others fall into the right place at the right time.

..and having said that, I still consider Minecraft's early days as having luck as a major contributor. I mean, I love Minecraft (despite my annoyance at the development process). I've ran a adult MC server for 4 years now, but still, Minecraft's infantsy days were no more than a technical demonstration of a voxel engine and he accidentally got the just-right blend of cute/fun that allowed people to overlook all the flaws, and boom, Minecraft was born.
8  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 20:53:58
@Jimmt: Luck.

I second this.

Minecraft was a concept that just kinda "caught on" and went viral, the reality though is if you look at Notch's project page, it's no different (and hell, in a lot of cases worse) than some of our members on JGO. Minecraft, even admittedly by notch, was a complete fluke. I will completely agree it was a great concept that took off, but at it's core, it was a complete total accident.

.. and this is coming from a guy who believes that making in this industry is mostly hard work, with luck being a very small contributing factor and even *I* am saying it was mostly luck this time around. Wink
9  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-16 07:08:59
First off, it looks fantastic, and runs really smoothly.

I've got two suggestions (To add to your list of things to do)

In the map builder its really annoying to have to select the brush size with the mouse.
A lot of photo imaging programs use Shift+MouseScroll to change the size and I felt like it would work well in this game

The second issue I had was I cant place houses back to back.
Ie, I place two tents, then hate how much lost space there is (A total of 8 tiles between them). Or do you plan on being cruel so space is even more valuable?



For the brush size my plan was to attach brush size to the scroll wheel, just like you suggested, but without shift since I have no other purpose for the scroll wheel currently anyway. But, I may make a shift+mousescroll toggle through various button modes (Like slide through Erase All, Terrain Only, Topo Only and Objects Only)

As for the space around buildings, that's intentional. If you could place buildings back to back you could use them to block off passageways, and that's what walls are for! It's more for a game balance thing in the future. There will be more (and larger) houses in the future too though, so it won't be as big of a problem I suspect. Smiley

(it's also a evil attempt to make land more valuable. persecutioncomplex )
10  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 20:23:55
Didn't he apologize later for those messages? Maybe it wasn't those specific ones, but he did for something similar.
People's values can change. We also don't even know a lot of the details in the transfer of ownership. They could have worked it out in a way that Notch felt would work well and go along with any vision Minecraft was supposed to be. We don't know.

Yeah, this is what I suspect happened. None of us know the conditions of the sale, I suspect there may have been many clauses in there to protect the nature of Minecraft. For example, a "No microtransactions" clause or some such.
11  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 20:12:30
He built up his reputation on giving the finger to big business, it's actually his fault people are reacting the way they are.

As I said, I'm happy for the sale. But it still doesn't change the fact Notch sold out his core ethical foundation. There's really no way you can claim he didn't. Although I'm sure he hates the fact he is in such a spotlight people are pointing it out. Notch set himself up as a shining example of sticking it to the man, then sold out to the man. There's many other ways he could of left the Mojang/Minecraft world.

Regardless, I'm not upset by any of this. I used strong words to make a point, and the point really can't be argued.. people can just be annoyed that I was so blunt about it. Wink

I guess I don't really know the details, since I never knew Notch built up his reputation as being anti-business or something of that nature. In fact, the genius-level Minecraft merchandising had me believing that he, like the rest of us, had no problem monetizing his product. Maybe I don't know enough about Notch to be commenting.

But even taking everything you said as true (despite it all being subjective and mostly from Notch's perspective), I'm still not sure why this is bothering so many people. "Oh no some guy I don't know is making money off of the product that he made and I enjoy, how terrible...." The amount of whining this is generating should at least make it pretty obvious to everybody why Notch is leaving in the first place, haha.

Well, I think the reason it bothers so many is actually his past mindset on big business, and then suddenly he's "in bed" with them according to the fans. If he wasn't following the ethical standpoint of "big gaming industry is ruining gaming" I don't think anyone would have cared that he sold the game. But I think because he has always had that standpoint, that's what has a majority of the fans in an uproar.

For example, here a few factoids, there's plenty more. But I guess these are the big two everyone references.
http://www.vg247.com/2014/03/25/minecraft-oculus-rift-deal-cancelled-because-facebook-creeps-notch-out/
http://kotaku.com/5947162/notch-id-rather-have-minecraft-not-run-on-win-8-at-all-than-to-play-along

It's odd that his stance against these companies would be so absolute, blunt, and strong, then he suddenly sells the company to one of them. That's where my "sellout his ethics" comments really originated, because I can't for the life of me figure out how the same person who could make the statements in the above articles, would sell his business to the same company unless those ethics he had in the past were just to drum-up support for the indie community and now that he doesn't need them, he doesn't care anymore and his true colors are showing.

Although, that's just my opinion based on the information presented to me. The only conclusion I can come up with that's logical. Because if he really, deep down believed in the philosophy hes touted for years there's no way selling to Microsoft would be an option, for any amount of money.
12  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 19:15:14
To quote Notch: "It’s not about the money. It’s about my sanity."

I guess I don't understand people criticizing this move. He explained pretty well his reasons for selling *his* company, not that he owes anybody an explanation.

Why does this make you (and lots of other people) so angry, when it really doesn't impact you at all?

I never said I was upset, just stating facts.

I'm happy for the sale, I figure MS will bring in a more professional-minded development process. My only concern (like everyone else's) is if they botch it. But I don't think they will.

Yeah you start making a game you think is fun and before you know it the whole internet and then some has opinions on how your core ethics are bullshit or something. Can't blame him for making a choice that might bring him happiness instead of endless rivers of hate that flow towards the internet-famous.

He built up his reputation on giving the finger to big business, it's actually his fault people are reacting the way they are.

As I said, I'm happy for the sale. But it still doesn't change the fact Notch sold out his core ethical foundation. There's really no way you can claim he didn't. Although I'm sure he hates the fact he is in such a spotlight people are pointing it out. Notch set himself up as a shining example of sticking it to the man, then sold out to the man. There's many other ways he could of left the Mojang/Minecraft world.

Regardless, I'm not upset by any of this. I used strong words to make a point, and the point really can't be argued.. people can just be annoyed that I was so blunt about it. Wink

13  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 18:25:27
Regardless of Notch's "You guys just don't get it" cop-out post, Notch is still a sellout of his core ethics. You can wave the "but it's 2.5 BILLION" flag around all you want, but facts are facts, when you already have hundreds of millions of dollars in your bank account 2.5 billion for a guy like notch (who isn't about power/corporate greed) is just a random number. He, his kids, and his kid's kid's kid's kid's can all live off the hundreds of millions he has right now.. Assuming they don't want a solid gold house on an island or something equally retarded.

Thus, no matter how you look at it, this just proves one thing: Notch's gaming-for-the-gamers ethics are complete, absolute, total bullshit. If he actually cared, he would of just given the company away to the other 2 owners and lived out his life just a comfortable with or without the 2.5 billion. Not ruin his entire reputation for more money he quite literally does not need.

Although having said all that; I'm actually glad Microsoft bought Mojang. Minecraft's development process is, and always has been, a bit of a train wreck with very little direction. Maybe MS can bring in some professional developers and Mojang will stop treating Minecraft like the world's largest hobby project. Cheesy
14  Game Development / Performance Tuning / Re: Check for null or check for implementation? on: 2014-09-15 08:19:29
@Rayvolution: that's a statistically insignificant example...doing whatever works best for your brain is the right approach.

This should be the answer to all programming questions. Wink
15  Game Development / Performance Tuning / Re: Check for null or check for implementation? on: 2014-09-15 08:04:05
I do null checks quite often now, I know it's a coding faux pas, but damn it. It makes sense in a lot of cases. Wink

For example, when a villager dies in RPC, part of the death() method does this:

1  
2  
3  
4  
5  
if (mate != null){
   mate.decreaseHappiness(75);
   mate.removeMate();
   removeMate();
}


Basically, it checks if it has a mate, if it does, removes the "bond" between the two, so the survivor can find a new mate in the future.

I believe the technically correct answer is "you shouldn't do it" though. But hey, I like it.

16  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 21:14:32

inorite? Smiley
17  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 20:30:49
If your pathfinding is A* or something else with cost metrics, prioritizing roads should happen automatically.

Mine doesn't use any movement cost calculations. That was part of the major reason why the roads are on the backburner, I don't factor movement costs on tiles at all currently. But, all tiles would have the same movement costs anyway (currently). Wink

I plan to add mud/slime/etc to slow down the entities though, so like you said, roads should also work automatically once I add movement costs back into my pathfinding. But, it requires a slight overhaul of the pathfinding to get that working. I basically do everything A* does *except* the tile movement costs, so plugging that back in probably won't be a big deal.
18  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 20:07:56
Adding roads and rails (especially the curvy kind) with vehicles using them, is enough to be a full project all by itself.

Even the backburner sounds like a dangerous place. Pointing
Seriously, keep the scope down!

Agreed. Smiley

It's really not a "planned" feature at the moment, as much as a "maybe someday in the future when I'm really bored" feature. Smiley

Although when I said roads I'm more just thinking pathways the villagers can walk on that offer a slight speed boost, no vehicles or anything. Really the roads wouldn't be too hard to add, all I really have to do is fork-off my wall code, rewrite it a bit to be roads instead, add some sort of speed boost when an entity is on top of it and then change pathfinding to prioritize to use roads. It's still a good deal of work, but no where near as complicated as a railway/vehicle system. Tongue
19  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 19:25:59
I noticed in the derelict building you had a rail track, maybe that could have some further implementation into transportation?

I have some plans for roads/pathways, but thats really far back on the backburner Wink
20  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-12 04:22:41

whoopsies, all fixed now. Smiley
21  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-12 01:33:55
Got a few requests to start up a tumblr, so, tada!
- Tumblr -

Please follow and reblog my announcement post if you're interested. Smiley
22  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-11 04:08:57
The bean-counter in my head can't come up with an equation where 2b makes sense.  There'd need to be some secret plan to make more than that back that isn't insane wishful thinking.  While it's true that some web calendar thing sold for a couple hundred mill in the 90s....but that was the 90s when everything tech was nuts.

A secret plan, Like make Minecraft subscription based and, Shut down bukkit/forge servers? That would be the ultimate cash in, In my opinion anyways.

Problem is a very large majority of the MC community is under the age of 14, and thus, probably can't afford said subscriptions.
23  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-10 20:50:40
Wow Ray, I'm very impressed with how far this game has progressed. Keep up the excellent work, I will definitely contribute to the KickStarter.

Thanks! Hopefully I can get it all wrapped up by the end of the month. But as I'm sure everyone on JGO knows, when you make a checklist you tend to add 2 things to it for every 1 thing you knock off.  When I wrote that last post, I had 14 major things that needed completed before I release the next tech demo, I knocked 4 or 5 off the list.. and now there's 21 things!

/grumble Wink
24  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-10 20:47:29
If there's any truth to this.  Stop poison pilling yourself!  https://twitter.com/notch/status/281139739304800256

It's almost disgusting that people are using a painfully obvious joke tweet from 2012 to push this news even further into "legitimacy". There's articles all over the web popping up mentioning this tweet now.
25  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-10 09:18:45
This has the hallmarks of a hoax or bullshit, tbh. It's a ridiculous valuation.

Cas Smiley

I agree, considering Notch in the not too distant past said this:
https://twitter.com/notch/status/251239807257296897
..and
https://twitter.com/notch/status/251240819892305922

His distaste for big-business in the gaming industry is pretty apparent. Not to mention EA games attempted to open up the option of buying Minecraft a few years back, and Notch turned them down.

If Mojang is sold to Microsoft, Notch would basically openly admitting he sold out all his ethics, morals and principals to make a buck, when he already have enough bucks for him, his kids and his kid's kids to never have to work a day in their life anyway.
26  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-10 09:14:05
For the second Mechanics Blog I will be discussing the buildings. In Retro-Pixel Castles, you place buildings in a similar fashion as you would in an RTS, as long as they're within your range map. (See the previous blog for an explanation of the Range Map system) but how they all function varies greatly, and many of them interact with each other in symbiosis. Smiley

The Village Center
When you start a game of Retro-Pixel Castles, you'll hunt down a good spot to call home. Once you find a spot you think is think is safe (hah! sucker! You're going to die anyway!) you will place your very first building, the Village Center. The Village Center is your primary building, and the only building that houses "Builder" workers that can construct other buildings. Losing this building pretty much spells doom for your village, so protect it well!



Homes
Homes are fully automated, each house can hold a certain amount of villagers, some food and in the future, some wood for heating for my future plans to add seasons to the game. When a villager gets hungry, sleepy, or simply just bored he will head to his house for some relaxation. Additionally as your villagers go through their day, they will also couple-up with other villagers. When this happens they attempt to move in together. So over time, your houses are naturally filled with pairs villagers who coincidentally will occasionally go home and "get busy". The happier your villagers are, the more often this happens, and in turn, the faster your population growth is!



Farms
Farms, are your main source of food. (Big surprise there!) There is food scattered all over the map, but none of it is replenishable. You will have to build some farms in your village and plant some of the food you find to get a stable food source going. The workers assigned to the farm will automatically harvest crops, and deliver food to the houses on the map.



Harvesting Buildings
Every resource in the game as a harvesting building that goes alongside it. Like a Lumber Mill for wood, and a Stone Masonry for stone. The workers assigned to these buildings will go out and gather materials on the map where ever you tell them to and bring it back to their building to store. They also play a vital role in the efficiency of your builder's building process because they can deliver resources to build sites, allowing more time for the builders assigned to your Village Center to build, and less time wasted gathering materials.



Abandoned Buildings
Many of the maps will have abandoned buildings scattered around, these old buildings cost roughly half as much to restore as it would cost to build a brand new one. So when placing your Village Center, it can be very helpful to locate some of these buildings and start your village near them.



Light Sources
Light Sources extend your build range, allowing you to place buildings further away from your Village. They play a vital role in setting up your defensive permitted out beyond the normal limits of your village. The Future
These buildings are just a small sample of what RPC will offer in the future. I have plans for guard towers, barracks, mage towers, alchemy labs, schools, orphanages, forgeries, workshops, and many other buildings. What I've shown you today (and what will be released in the upcoming Building Mechanics demo) just barely scratches the surface.

BONUS: Stay tuned! The Kickstarter, Greenlight AND the Building/AI Tech-Demo will be released soon! Smiley
27  Discussions / General Discussions / Re: Can a Single Developer Create a Big Game? on: 2014-09-09 18:37:35
Ask me when Retro-Pixel Castles is completed! Cheesy

In all seriousness though; I think it can be done. Banished was a one-man show and that's a pretty large scale game, so why not? You just have to have the mental capacity, be capable of and willing to learning new skills on the fly. To be a one-man-show you have to know how to do art, programming and sound effects and know how to balance the workload so you don't go insane in the process.

Now, can one person make a huge multimillion dollar AAA title like The Last of Us, Skyrim, Wolfenstein: New Order, Grand Thief Auto 5? Technically yes, although if you had all the required skills it would still take you so long to develop it would be obsolete before you ever get it out the door. No amount of skill will makeup for needing to do 500,000 labor hours of work, and one human can only work so fast. Some things are just unrealistic to do alone, but can they be? sure.
28  Game Development / Newbie & Debugging Questions / Re: [Solved] Player Movement based on Mouse Clicked on: 2014-09-07 04:02:21
If it works, it works.
Hopefully, as you gain experience, you will see your code evolve from "pile of hacks" to elegance. Happens with any skill.

I agree and, I'm thankful for the suggestions an time you put into helping everyone here. Unfortunately, This was a bug that was unforeseen and, I chose to make a work around. Rather than rewrite a bunch of code. Like you said, The code will evolve over time to something a lot better.

Fun part is when you go back to your old code you thought was hot shit when you wrote it, and you were so, so proud of it, and realize you could of written the entire thing to run 4 times as fast in half as many lines. Tongue
29  Game Development / Newbie & Debugging Questions / Re: Player Movement based on Mouse Clicked on: 2014-09-07 02:34:35
Having really good click-to-move movement is actually a little bit advanced.

There's simpler solutions (like what BP posted) but when you start needs to go around complex structures (like a floor plan in a building, a hedge maze, etc), you'll have to learn how to do pathfinding, and have the character create a path to the destination. Then mixed with that, you implement something like what BP posted to generate "way points" to walk to.

There's about 50 million ways to do it though. What I do is build a path, then I tell them to walk from one tile to the next on a grid until they reach the destination tile.

But, pathfinding is a advanced topic, I wouldn't recommend even trying until you get some basic movement down (again, like what BP showed you).

Here's a super basic movement system that moves an entity from one tile to the another. It's pretty similar to BP's (Almost identical really), just written a little differently. Might help to give you multiple perspectives on the same problem.
1  
2  
3  
4  
5  
6  
   protected void walkTo(int destinationX, int destinationY) throws SlickException{
      if (entityY > destinationY){entityY -= speed;}
      else if (entityY < destinationY){entityY += speed;}
      else if (entityX < destinationX){entityX += speed;}
      else if (entityX > destinationX){entityX -= speed;}
   }
30  Game Development / Newbie & Debugging Questions / Re: Noob Questions From Nickropheliac : My Stupid Interval Bug on: 2014-09-06 21:42:04
What does the '%' operator actually contain? What is the difference between this operator and the bit, gang?  Smiley

the % operator returns the remainder in division.

For example:
17 % 8 = 1, because 8 can go into 17 twice with a remainder of 1.

thus:
11 % 5 = 1
16 % 6 = 4
(and so forth)

EDIT: Belated pizza-ninja, didnt see his post. Cheesy
Pages: [1] 2 3 ... 27
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (25 views)
2014-09-21 02:42:18

BurntPizza (16 views)
2014-09-21 01:30:30

moogie (19 views)
2014-09-21 00:26:15

UprightPath (26 views)
2014-09-20 20:14:06

BurntPizza (29 views)
2014-09-19 03:14:18

Dwinin (44 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (100 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56

mitcheeb (71 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!