I get all of this except how did you get the character to rotate with the mouse? I know how to get the mouse position and everything but how did you get the image itself to rotate
@ColumboJedi yes you just need to load a .gif image, thats the easiest way java plays it by default, the other way is animating a spritesheet but thats a little bit more complicated but more customizable,
@EdurarTe so let me get this straight. The body has 2 parts. The top part is the body/arms/head that is programmed to face the mouse. The other part is a an animated GIF that switches when a different key is pressed?
I'm just getting into game development, and I'm trying to figure a few things out.
@who885 well i just finished a new advanced engine and i had to say that knowing java reeaally boosts your Object Oriented Programming ideas, and lets you get out of the boundaries easily because its simple syntax and interface with other classes, easy inheritance and polymorphism, then you just port those ideas to c++ more complicated terms cause Java wraps up every difficult topics (pointers, smart pointers, void stuff..) and lets you easy and fast programming so learn Java then C++ :)
@VoltageEntertainment Hey, no need to get offensive. I'm sure the flickering is from the video. Though, I may have came on a little strong when I said that. You seem to have put a lot of work into this game, and I hope that the end result will do great. So far and from what I can see it looks very good.
@boatyboatride Wrong. Runescape was and is still coded in Java. RuneScript is the scripting language the quest/level designers use to develop and release updates quickly.
epale man, mira como haces para esconder el fondo de los sprites? ya que, en el fondo de mi juego hay partes que no estan en color blanco y cuando lo sprites se paran en ellas, se ve el fondo , sabes hacerlo?
"well, java is free, and it´s easier to programm than flash, but flash loads faster nad you know, everybody has flash installed, but as i told you, java is easier and has almost the same syntax as C#, C++, VC++, and all the new Object Oriented languages"
C++ isn't new, and VC++ is just the Microsoft compiler for C++, also I'd like to point out that when C# was made, they basically copied Java.
And as for flash I wouldn't know whether or not flash loads faster, I just know it's much slower.
loved your use of animation and manipulation of the 'top-half' of the body to follow the mouses movement, just some maths that im not good at =( lol. bloody trig
IDE, cause it links the compiler, so use JCreator, the LE version not the PRO... otherwise, u´ll need to directly work with the console compiler, wich is boring..
@EdurarTe hey sorry to herrasing with questions you mostlikly get everyday but i would like to learn some coding for a hobby now but later on i plan to go in to it head on to simplfy my question why should i learn java whats i haveto offer me?
@who885 Java is a very good language. It is easy, and it makes sense for the most part. However, due to it being a high-level interpreted language, some things you will encounter are a bureaucracy, and it unless you use some kind of native interface, java alone will not be as fast as a native language like C or C++. (Native languages compile into direct machine code, so there is no interpretation of the code required.) But java compiles into a bytecode, which is about 90% as fast as native code.
@superkellerman8D what would i have to do for it not to compile into a byte code if i cant what do i need to support it? and i have never codedc ever i have been playing around with C#/XNA,C# alone,c++ and java so see what i like best but i need some guidence to tell me what i should head into first
@who885 Your first question isn't really clear, but I would recommend Java first, as C++ has a very, very steep learning curve. C# and XNA is somewhat like Java, but it only works on windows. It would be easier to get something going, but in the long run, you wouldn't have much control.
@superkellerman8D well java compiles in to direct machine code but C++ seems to have me interested
i have been studying on it and i just understand it alot more then java all the files i have to type up in java kinda scare me XD but you have to type alot in anything but as of now im learning C++ later on planing to learn openGL or darkGBK but i will look at java alittle more if i like it i would start asking questions
Ok, but all in all, do you know any ''game programming books'' with C++? because though my goal is to write in C++, but i don't get much out of it if i don't have any books to help. Like ''Visual basic game programming for teens'' or ''flash game programming for dummies'' etc.
If you want to learn C++ buy "Sams Teach Yourself C++ in 21 Days" I bought this book before I went to college then when I was in college it was the book we used in my first programming class. I would highly recommend it if you wish to get a beginners C++ book. I still reference it if I am stuck or forget some syntax.
Thanks :P, i will look about this, but i am also begun code alot in Visual Basic, (Check my silly videos XD), then i want to know if any here know some books or tutorials to makeing a Game engine in Visual Basic
And can i ask how i get the Java language? i don't know what to type like ''download java language'' or something? then 1000things pup up i dont know which one :(
Awesome thanks Bober :P, can i ask if what is best of ''Flash'' and ''Java?'', i just got Flash cs3, and begin in making some little games, but i don't kmnow which is best? for a game like the one in this video.
well, java is free, and it´s easier to programm than flash, but flash loads faster nad you know, everybody has flash installed, but as i told you, java is easier and has almost the same syntax as C#, C++, VC++, and all the new Object Oriented languages
This is by java right? im learning to make 2D games, but C++ and VB is too ''hard'' for me right now, so im looking for a easyer is java easy to learn? When i hear 'java' i think of runescape that i DONT like :b, but is it worth to try Java?
@EdurarTe Actually, Runescape is programmed is something called 'Runescript'. It was a language made by the programmers. However, it's pretty much an extension of java (at least to my understanding).
@EdurarTe i know im late to say that xD but minecraft is made in java too and a pretty big game with the halloween update and the hell update! im not a hator im just saying
@JoeKinglake Java is more used than JavaScript, I remind you that J2ME or J2SE for Embedded Use is in almost all mobile phones except IPhones and Android smartphones (that use Java but with a Dalvik Virtual Machine, not a JVM). Java is not used only in video games, it is used in professional applications in a lot of subjects (sciences, trading, etc...).
Excellent start. The character is green and lively. The guy is moving to quick for his walking speed, if you watch his legs they only move a little yet he seems to move a considerable distance. Either make his legs move faster or reduce the distance he covers to achieve a balance. Looks promising though, I'd like to see this game when it is finished. Keep 'em coming :)
And probably had something like public boolean mouseMove(Event evt, int x, int y) { this.x = x; this.y = y; } and used the rotate() method in java.awt.Graphics2D to rotate his image.
I like the simple mapping. Made your own little tiling system? Is it an array that stores whether to show a tile or not? I personally have a tiling method where I say where it starts, say the width and height, it rounds it to the nearest width and height the tiling can be and fills it up.
where i can download java
deVILLA70 21 hours ago
I get all of this except how did you get the character to rotate with the mouse? I know how to get the mouse position and everything but how did you get the image itself to rotate
Drawurface 2 weeks ago
Running sprite needs to be faster and smoother, im not a pro but it will look better
bananaboi5 1 month ago
How did you do tht?
SomeAssholeOnYT 1 month ago
Yeah how did you get the sprite to look at the mouse?
DarkGhoul45 1 month ago
Hey, any chance you let me know how you managed to get the sprite to keep looking at the mouse all of the time? I'm really stuck with that....Please?
FloormanUK 2 months ago
code??:D
handman98 5 months ago
Hi.
could you give me some tips in how I can make my character move legs..
coz my character just move to left and right , but dosent have any animation.
where do I start to do it ? pls.
tnks.
ColumboJedi 5 months ago in playlist More videos from EdurarTe
@ColumboJedi yes you just need to load a .gif image, thats the easiest way java plays it by default, the other way is animating a spritesheet but thats a little bit more complicated but more customizable,
EdurarTe 5 months ago
@EdurarTe so let me get this straight. The body has 2 parts. The top part is the body/arms/head that is programmed to face the mouse. The other part is a an animated GIF that switches when a different key is pressed?
I'm just getting into game development, and I'm trying to figure a few things out.
tomalotube 1 week ago
@who885 well i just finished a new advanced engine and i had to say that knowing java reeaally boosts your Object Oriented Programming ideas, and lets you get out of the boundaries easily because its simple syntax and interface with other classes, easy inheritance and polymorphism, then you just port those ideas to c++ more complicated terms cause Java wraps up every difficult topics (pointers, smart pointers, void stuff..) and lets you easy and fast programming so learn Java then C++ :)
EdurarTe 6 months ago
NEEDS DOUBLE BUFFERING BAD.
superkellerman8D 8 months ago
@superkellerman8D What are you talking about? It's already there you twit.
VoltageEntertainment 7 months ago
@VoltageEntertainment Hey, no need to get offensive. I'm sure the flickering is from the video. Though, I may have came on a little strong when I said that. You seem to have put a lot of work into this game, and I hope that the end result will do great. So far and from what I can see it looks very good.
superkellerman8D 7 months ago
yes, we get it... His head follows the mouse.
ScruBBso 8 months ago 2
I love the animations, specially when he jumps, really good job!
dvmserpent1986 9 months ago
You should make tutorials on this.
ChaseandDonny 9 months ago
This has been flagged as spam show
Just finished updating my java game and a zip with a jar and all the resources is online!! It's on my channel.... check it out
(youtube..dot..com) /watch?v=-3I_hUg06Dg
kylecowan990 9 months ago
can't you make a slower title?
iWISHinfected 11 months ago
Comment removed
thecoast47 1 year ago
pick p the weapon!!! :D
kingbabolos 1 year ago
That's now how you make proper mouse looking in a platform game! it requires trig to get the angle :P
orange451 1 year ago
i love the part when the chief hold the weapon
warnexus 1 year ago
wow. I'm very impressed at the sprite and animation.
that's pretty badass looking.
Fade2Dark 1 year ago
@boatyboatride Wrong. Runescape was and is still coded in Java. RuneScript is the scripting language the quest/level designers use to develop and release updates quickly.
zspencer7 1 year ago 2
awosme game
lewismarsh10 1 year ago
How do you get the image to look at the mouse?
b1narycoder 1 year ago
its master chief
skullz2halo3 1 year ago
epale man, mira como haces para esconder el fondo de los sprites? ya que, en el fondo de mi juego hay partes que no estan en color blanco y cuando lo sprites se paran en ellas, se ve el fondo , sabes hacerlo?
Nitros8891 1 year ago
"well, java is free, and it´s easier to programm than flash, but flash loads faster nad you know, everybody has flash installed, but as i told you, java is easier and has almost the same syntax as C#, C++, VC++, and all the new Object Oriented languages"
C++ isn't new, and VC++ is just the Microsoft compiler for C++, also I'd like to point out that when C# was made, they basically copied Java.
And as for flash I wouldn't know whether or not flash loads faster, I just know it's much slower.
b1narycoder 1 year ago
hi man i love to create something like taht could you make a tuto or pass me the code im from dr i`ll to help in your project
sephirrothvt 1 year ago
Bello questo!
escofal 1 year ago
what programme is this
jameskeir12 2 years ago
why isnt the gun transparent?
spudzy916 2 years ago
lol, moonwalk
gaggerzon 2 years ago
Could you show me source? Im wondering how you did that gun is rotating.
Qnradr 2 years ago
@Qnradr
BufferedImage jon = ImageIO.read(newFile("source"));
Graphics2D g = (Graphics2D) jon.getGraphics(); g.rotate(double theta,int x,int y);
Martyj2009 2 years ago
loved your use of animation and manipulation of the 'top-half' of the body to follow the mouses movement, just some maths that im not good at =( lol. bloody trig
twov1 2 years ago
Would i need an IDE with templates for Java programming? Or is notepad++ enough? It got Java syntax.
lakristianla 2 years ago
IDE, cause it links the compiler, so use JCreator, the LE version not the PRO... otherwise, u´ll need to directly work with the console compiler, wich is boring..
EdurarTe 2 years ago
Ok, thanks :) Also saw another video using Jcreator, you would recommend that one?
lakristianla 2 years ago
@EdurarTe Eclipse is better.
FallForYou55 1 year ago
@EdurarTe I use netbeans...
It's pretty good.
UnpredictableProduct 11 months ago
@EdurarTe hey sorry to herrasing with questions you mostlikly get everyday but i would like to learn some coding for a hobby now but later on i plan to go in to it head on to simplfy my question why should i learn java whats i haveto offer me?
who885 8 months ago
@who885 Java is a very good language. It is easy, and it makes sense for the most part. However, due to it being a high-level interpreted language, some things you will encounter are a bureaucracy, and it unless you use some kind of native interface, java alone will not be as fast as a native language like C or C++. (Native languages compile into direct machine code, so there is no interpretation of the code required.) But java compiles into a bytecode, which is about 90% as fast as native code.
superkellerman8D 7 months ago
@superkellerman8D what would i have to do for it not to compile into a byte code if i cant what do i need to support it? and i have never codedc ever i have been playing around with C#/XNA,C# alone,c++ and java so see what i like best but i need some guidence to tell me what i should head into first
who885 7 months ago
@who885 Your first question isn't really clear, but I would recommend Java first, as C++ has a very, very steep learning curve. C# and XNA is somewhat like Java, but it only works on windows. It would be easier to get something going, but in the long run, you wouldn't have much control.
superkellerman8D 7 months ago
@superkellerman8D well java compiles in to direct machine code but C++ seems to have me interested
i have been studying on it and i just understand it alot more then java all the files i have to type up in java kinda scare me XD but you have to type alot in anything but as of now im learning C++ later on planing to learn openGL or darkGBK but i will look at java alittle more if i like it i would start asking questions
who885 6 months ago
@who885 .java files do NOT compile into assembly, they compile into Java bytecode which the VM then runs.
DezaOO7 6 months ago
@EdurarTe I use eclipse, because it underlines and describes errors actively, you don't have to compile all the time to check for errors.
blenderobsession321 7 months ago
just need notepad in java get an IDE if you want to see if your typing stuff wrong.
deluxedookie 2 years ago
try eclipse IDE
ZeacussEbso 2 years ago
@lakristianla You can use Eclipse or Netbeans too.
gouessej 1 year ago
@lakristianla An IDE would be preferred, for reasons stated, but you don't _need_ one. you just need the java development kit.
superkellerman8D 7 months ago
Uhm... Pretty nice dude, and something cooler is that you can drop weapons!!!
Niiiiiiiiiice... but I still like Psychostrain :P
Some friends and I made a kind of Zelda Game, using tiles as well. Maybe i'll upload a video about it someday.... someday....
Hey meryeah!!! how u doing? lol
clonlalo2 2 years ago
watch the video :| !! PsychoStrain V1.0 we also used masterchief sprites. ha.
meryeah 2 years ago
we also made a game in Java for a school project, PsychoStrain.
meryeah 2 years ago
running cylce is backwards! is messed up look like it going backwards!
Renkay141 2 years ago 2
the assault rifle looks like so big as a rocket launcher
haloktcb 2 years ago
Ok, but all in all, do you know any ''game programming books'' with C++? because though my goal is to write in C++, but i don't get much out of it if i don't have any books to help. Like ''Visual basic game programming for teens'' or ''flash game programming for dummies'' etc.
lakristianla 2 years ago
If you want to learn C++ buy "Sams Teach Yourself C++ in 21 Days" I bought this book before I went to college then when I was in college it was the book we used in my first programming class. I would highly recommend it if you wish to get a beginners C++ book. I still reference it if I am stuck or forget some syntax.
Gekitatsu 2 years ago
Thanks :P, i will look about this, but i am also begun code alot in Visual Basic, (Check my silly videos XD), then i want to know if any here know some books or tutorials to makeing a Game engine in Visual Basic
lakristianla 2 years ago
And can i ask how i get the Java language? i don't know what to type like ''download java language'' or something? then 1000things pup up i dont know which one :(
lakristianla 2 years ago
The Java Language?
Im going to asume you mean the java sdk.
SDK = Software Development Kit.
Do a search of java sdk, then watch some tutorial videos on how to install and use it.
bobertgradday 2 years ago
Awesome thanks Bober :P, can i ask if what is best of ''Flash'' and ''Java?'', i just got Flash cs3, and begin in making some little games, but i don't kmnow which is best? for a game like the one in this video.
lakristianla 2 years ago
well, java is free, and it´s easier to programm than flash, but flash loads faster nad you know, everybody has flash installed, but as i told you, java is easier and has almost the same syntax as C#, C++, VC++, and all the new Object Oriented languages
EdurarTe 2 years ago
This is by java right? im learning to make 2D games, but C++ and VB is too ''hard'' for me right now, so im looking for a easyer is java easy to learn? When i hear 'java' i think of runescape that i DONT like :b, but is it worth to try Java?
lakristianla 2 years ago
Runescape is progged in java ?
DATAFRAMEC 2 years ago
I think it is DATAFRAMEC, or i thought :P, i played it when some years ago, then i needed java so i think.. :)
lakristianla 2 years ago
Oh, well, i like your java apps :P
Which IDE do you use? Looks a bit like NetBeans, i een have problems to include pictures in my applets xD
DATAFRAMEC 2 years ago
yup it is, its kinda the biggest game ever created in java, (because is a MMORPG 3d applet)-very very complex
EdurarTe 2 years ago
@EdurarTe Actually, Runescape is programmed is something called 'Runescript'. It was a language made by the programmers. However, it's pretty much an extension of java (at least to my understanding).
boatyboatrite 1 year ago
@EdurarTe i know im late to say that xD but minecraft is made in java too and a pretty big game with the halloween update and the hell update! im not a hator im just saying
jereicool 1 year ago
you could make something just as good on like game maker or something
soccerguy321 3 years ago
Yeah, but Game Maker has almost all of the work done for you. Java takes quite a bit of configuration and programming.
Also, nice engine! Hope you can make a nice game with it! ;D
CHR15x94 3 years ago 2
But Javascript is much more useful as it is used in almost everything eg Software development, Movile Phones ect not just video games
JoeKinglake 3 years ago
@JoeKinglake Java is more used than JavaScript, I remind you that J2ME or J2SE for Embedded Use is in almost all mobile phones except IPhones and Android smartphones (that use Java but with a Dalvik Virtual Machine, not a JVM). Java is not used only in video games, it is used in professional applications in a lot of subjects (sciences, trading, etc...).
gouessej 1 year ago
@JoeKinglake I am tired of people trying to compare java with javascript, the only thing they have in common is 4 letters in their name, NOTHING else
MrDpsc 1 year ago
the satisfaction of making things with a REAL programming language by far superseed gamemaker :) it's like comparing TV dinner to a gourmet meal :)
uoftcosmik 3 years ago 2
I notice from the video it's programmed in Java.
Is the code open source, I'm very intrigued.
Please contact me.
Thanks. :)
Excalyoop 3 years ago
Nice! check my videos, I have some games and you can download them from my website
goblinax 3 years ago
you write games with java
chivas408 3 years ago
why not?
BurnerPat 3 years ago
no mams wey k perro,
al parecer tu vas a cer programador de grande
yo quiero ser arquitecto jeje luego diseño un edificio, lo grabo, lo subo y ya estamos a mano va? sale we cuidate y sigue programando..
proxima vez quiero un juego como GTA 4 :S!!
hernanor1993 3 years ago
@hernanor1993 Poisonville is written in Java and it is a GTA-like game in 3D.
gouessej 1 year ago
@gouessej yeah but totally not ready XD
I like the engine it used (jmonkeyengine) very much =)
MrDpsc 1 year ago
aii vida sta spr bonito..quiero aprender a programar <3
Becatrix 3 years ago
how you make it so you look with the mouse?
majordja 3 years ago
Excellent start. The character is green and lively. The guy is moving to quick for his walking speed, if you watch his legs they only move a little yet he seems to move a considerable distance. Either make his legs move faster or reduce the distance he covers to achieve a balance. Looks promising though, I'd like to see this game when it is finished. Keep 'em coming :)
Pablos544 3 years ago
thanks for the tip, i´ve just started animating sprites so im a n00b at it :( thanks for the comment ill try to reanimate the walk/run cycles
EdurarTe 3 years ago
But it's great i really love it, don't give up you've got a really nice product!! It's one of my favourite! I hope you keep going :))
Pablos544 3 years ago
can u shoot the gun
mike709j 3 years ago
that looks nice, are you gonna put blood particle system thing or what??? I don't know why that is important but it would be cool
eatcomics 3 years ago
como sabes esto del helicoptero globo?
simpre pienso k tngo k gravarlo pero me olvido o me da palo...
sdrfgvrfgvsfravgdsvS 3 years ago
jaja muy bueno!
mejor que el anterior
usaste Seno, Coseno y Tanjente(Sin, Cos, Tan)???
ChisponGroxo 3 years ago
Nice! I like how the chiefs body follows the mouse
BUDOKAI1 3 years ago
Looks nice no no it looks aweseome!Please make tutorial how to make game like this!
kwanttitatti 3 years ago
Nice
wolfaaron 3 years ago
how did you make the guy follow the cursor
BlingBlingBrothers 3 years ago
And probably had something like public boolean mouseMove(Event evt, int x, int y) { this.x = x; this.y = y; } and used the rotate() method in java.awt.Graphics2D to rotate his image.
I like the simple mapping. Made your own little tiling system? Is it an array that stores whether to show a tile or not? I personally have a tiling method where I say where it starts, say the width and height, it rounds it to the nearest width and height the tiling can be and fills it up.
Aprzepioski 3 years ago
Hehe, forgot return true, smooth. :P
Aprzepioski 3 years ago