Godot: Spawn an object in 3D
Stack Exchange - Game Development
by AndyD273
2d ago
I've been looking for a tutorial and am hoping that someone can point me in the right direction. I'm working on a FPS game in Godot, and I want to be able to drop a flare on the ground at the players position. I created a scene with a "flare", which right now is basically just a sphere mesh instance and an omni light child. In my player.gd I have something like this: var instancedFlare = preload("res://flare.tscn") func _physics_process(delta): if Input.is_action_just_pressed("drop_flare"): print("Flare!") which prints Flare! to the output when I hit F or Y on the controller. So ..read more
Visit website
Load vertexes from an obj file
Stack Exchange - Game Development
by mueoc mueoc
2d ago
I do have a problem with loading my vertexes. When I debug my code. I find out the vertexes are loaded. But when i use render doc, I found out the vertexes are not loaded. Only the first line of my vertex gets loaded. I went thru my code i could not find the problem. Render doc: My code: bool ObjFile(ID3D11Device* device, MeshD3D11* Mesh ,VertexBufferD3D11* vertex, IndexBufferD3D11* IndexBuffer, TextureSrvRtv* SendColorInformation) { objl::Loader LoadOBJ; bool ReadingFile = LoadOBJ.LoadFile("ball.obj"); if (!ReadingFile) { std::cerr << "the file can't be open ..read more
Visit website
Have black screen after build game on web gl
Stack Exchange - Game Development
by Kozyr
2d ago
Good day. Everything works fine for me on the unity stage, but as soon as I start the game, after the unity screensaver I get a black screen with an interface, what to do, please help. My console Uncaught (in promise) Error: No parent to post message at f.postToParent (v2:sourcemap:1:9214) at ra (v2:sourcemap:1:96881) at v2:sourcemap:1:110441 v2:sourcemap:1 Uncaught (in promise) Error: No parent to post message at f.postToParent (v2:sourcemap:1:9214) at window.loadEnvironmentPromise.window.loadEnvironmentPromise.Promise.then.t (v2:sourcemap:1:110561) at new Promise ..read more
Visit website
Making games for yourself with a story?
Stack Exchange - Game Development
by user8600
2d ago
I want to develop games for myself. Sadly, I'm limited to making text-based things (though this does have some practical benefits). The biggest limitation though is none of my games can really have a 'story'. What's the point in putting any story in a game you intend to play yourself? You obviously can't surprise yourself. Yeah, you technically could, but that would be like piling up blocks just so you can knock them over. What kind of adult seriously enjoys that? Of course, you could have this in a from. Games like The Sims Series and Dwarf Fortress for xample are pretty good at procedurally ..read more
Visit website
How can I distance camera according to player speed?
Stack Exchange - Game Development
by jukvox
2d ago
How can I make the camera move further away from the player according to player's speed? So, the camera is at default distance, but when the player catches a boost (increases speed), the camera smoothly moves further back. When player gradually gets back to normal speed, the camera gradually comes back to default distance. I'm using UNITY; C# ; Game is at it's very beginning, very open to any suggestions. This is the camera follow logic I'm using: using System.Collections; using System.Collections.Generic; using UnityEngine; public class SmoothUpwardFollow : MonoBehaviour { public Transf ..read more
Visit website
Should I fully draw inside the canvas (e.g.: 32x32 aspect ratio) for pixel art games?
Stack Exchange - Game Development
by NickNameNick
2d ago
When I draw art assets for a game, should I fill the whole tile/frame? Would it look good in a game if I use less than the 32 by 32 pixels of the canvas, like the picture below?: When I export this pixel art, it changes the width to 21px and height to 28px, like below. What is the standard practice that game developers go for? Should I change my drawings so they utilize all the canvas and stretches from the beginning to the end ..read more
Visit website
How can I change checkers pieces to move only horizontally and vertically?
Stack Exchange - Game Development
by OneSec
2d ago
I am a beginner level programmer trying to learn Python. I could not figure out how to change the values so I can restrict the pieces of checkers from moving diagonally. I want them to be able to move only horizontally and vertically. My code is given and I think the problem is inside the _move_left where there are moves.update, but I have no idea how to fix it. I am watching a video about creating it but the guy didn't explain that well how the functions work (he is making pieces move diagonally). def get_valid_moves(self, piece): moves = {} left = piece.col - 1 right = piece.col ..read more
Visit website
SSAO Looks Like Depth Buffer
Stack Exchange - Game Development
by Karim Hamdallah
2d ago
I have problem with ssao, i'm using vulkan and follow Sascha Willems vulkan ssao example here: https://github.com/SaschaWillems/Vulkan/blob/master/examples/ssao/ssao.cpp my ssao result looks exactly like depth buffer with some artifacts. #version 460 #extension GL_ARB_separate_shader_objects : enable #extension GL_KHR_vulkan_glsl : enable // in layout(location = 0) in vec3 aPosition; layout(location = 1) in vec3 aNormal; layout(location = 2) in vec3 aTangent; layout(location = 3) in vec3 aBiTangent; layout(location = 4) in vec2 aTexCoords; // out layout(location = 0) out vec3 vFragPos; la ..read more
Visit website
Chain cutting swipe input skips over chains
Stack Exchange - Game Development
by CheckerT
2d ago
I have a game where you need to cut chains, similar to Cut The Rope. I want to develop it for Android, so I need mobile controls. For detecting swipes I used OnMouseEnter() and OnMouseDown() for when you just click and it works perfectly! The problem only occurs when you swipe too fast over the chain because, in this case, it doesn't get destroyed. The code I used is: using UnityEngine; public class DestroyOnDrag : MonoBehaviour { private void OnMouseEnter() { Destroy(gameObject); } private void OnMouseDown() { Destroy(gameObject); } } I think this i ..read more
Visit website
Why doesn't Coroutine work the way I want with if blocks?
Stack Exchange - Game Development
by Volkan AKDAG
2d ago
I'm making a game and when the enemy dies I keep it in memory. I want the person playing to find the game just as they left it when they enter. I'm doing most of these, but there's one small problem left. The problem is, when I write the if block code line in Fixed update, I get the value true when the enemy dies and the true tick is activated in the inspector, but when I want to do this with the coroutine, I cannot activate it. In general, I had trouble using Coroutine with if blocks while making the game. If anyone knows where the problem is, I would be very happy if they could help. How sho ..read more
Visit website

Follow Stack Exchange - Game Development on FeedSpot

Continue with Google
Continue with Apple
OR