csganja

Members
  • Content Count

    28
  • Joined

  • Last visited

About csganja

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Gonna let this here... https://www.youtube.com/watch?v=Bx-qB2wCS5w
  2. No need to set h/v alignement as the image and the container have the same width/height, the problem was the container alignment. But it's solved now. Container is aligned to left/bottom but after scale the original size is acting as a wrapper and the scaled container is aligned to center/middle ignore my painting skills
  3. Solved the problem by adding another BABYLON.GUI.Container, rescale then add the other BABYLON.GUI.Container to the first container (and not to the CreateFullscreenUI). This way the second container get proper position and inherit the scale. Edit: Yep, it gets proper positioning top/mid/bot
  4. I get a gap between "bottom" and the real bottom I am using a "Container" to group my action bar images, the images are for 1920x1080 resolution and i am using this container.scaleY = this.engine.getRenderHeight()/1080; container.scaleX = this.engine.getRenderWidth()/1920; to scale the images to the engine resolution. The container is 1920x250 (exactly as the image resolution) aligned to bottom... Tried to replicate this in playground https://playground.babylonjs.com/#YIZWMB As you can see the rectangle is not aligned neither to left or bottom;
  5. https://youtu.be/1Zp7bOKd3Qk Still working on UI things [skills/character/inventory] Working solo on this thing it's harder than i thought...
  6. Nice one, but i almost shit my pants when i opened the game....
  7. @marcusfenix i know, the collision is pretty f*up @Dad72 3d models are from MuOnline, chinese game @Pouet i have no idea, the server is up, no crash in 2 days Thanks for feedback guys, means a lot for me. Now i am working on skills/character/inventory windows. I switched to Babylon 3.0 yesterday, idk what they done but i have 15 more fps... nice job
  8. Glad that you like it. I am working on a map editor for towns, for now i am manually placing objects. Other maps will be randomly generated
  9. http://85.186.223.60 If anyone is joining me please leave a feedback, even if there is nothing to do, just walk around. Fps, ideas, constructive feedback e.t.c. @Dad72 Console output: This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m. I have just tested with my friend and he can connect.
  10. Up now, idk why the mysql server crashed.... Don't expect something "wow", there is almost nothing to do
  11. The community will be credited for sure, both babylon js and html5gamedevs. I'm gonna leave this http://85.186.223.60 here Tomorrow i will write basic ai for mobs and add 1-2 maps [flat planes with mobs] + level/xp [basic, add damage/hp/mana] Ps, the collision is messed up, don't try to go into walls, you will get stuck. Right click and 1-4 are skills, only 1 can "deal damage"
  12. Question, am i allowed to do this Game.prototype.customizeLoadingScreen = function(){ // Customize loading screen var loadingText = this.Babylon.engine._loadingScreen._loadingTextDiv.parentElement.childNodes[0]; loadingText.innerHTML = "Loading..." loadingText.style.color = "#990000"; loadingText.style.fontSize = "16px"; loadingText.style.fontWeight = "bold"; var loadingImage = this.Babylon.engine._loadingScreen._loadingTextDiv.parentElement.childNodes[1]; loadingImage.src = "images/loading.png"; loadingImage.style.top = "30%"; loadingImage.style.marginTop = "250"; var loadingLogo = this.Babylon.engine._loadingScreen._loadingTextDiv.parentElement.childNodes[2]; loadingLogo.src = "images/nevergrind.png"; loadingLogo.style.top = "100px"; loadingLogo.style.marginTop = "0"; loadingLogo.style.marginLeft = "-175"; } To achieve this? Or i am forced to use the default loading screen?
  13. Sick and busy, job is taking all my time... Today i got this, send skills to server and back to clients, skill callback [hit/miss], damage indicator [took me a while to figure out BABYLON.Vector3.Project] I have one question, actually need a sugestion, don't really know to explain but i'll try my best. How would be better, to check things [can move to x:y, can cast skill e.t.c.] on client side or server side? Eg: Cast skill -> check mana on client side and send the action on server to be sent to other clients Or Cast skill -> send to server -> check mana -> send back to client / other clients Gonna obfuscate all files with this thing [or any other obfuscators] Edit: Quick tool to merge my files, now i need a good command line javascript obsfucator
  14. Any reason why the intersectsMesh is triggered on the red line area and not on the green line (as would be normal i guess)? Just using a simple code, nothing fancy... No physics engine... // skillMesh - fireball thing // m - monster scene.registerBeforeRender(function() { if (skillMesh.intersectsMesh(m, false)) { // do your job [call hit(), unregister this e.t.c.] console.log("hit"); } else { // set skillMesh.position } } Edit1: Played a bit more and rotated the mesh, the collision area is still in the back of monster, Could be a mesh problem? Edit.2 Replaced my monster with a sphere and collision works fine, i can't see the problem on my mesh... Edit3: Solved, i have no idea how this helped but i change the rest pose and it's fine now