All Activity
- Past hour
-
So far, I’ve achieved basic player control. The player flies forward at a constant speed. I’ve set the player's starting point via script, and the player successfully resets to that point when it makes contact with the ground or other game objects. I achieved collision detection by checking the struck entity's collision type. This works in this case, but perhaps there is a better way? Utilizing a timer, I’ve successfully added a 3-second delay after opening the game, before the player starts moving forward. This has caused an issue that I’m currently trying to overcome. Gravity still acts even when the timer is active. I thought maybe setting self:SetGravity(0) from the start and calling self:SetGravity(1) after checking if the game has started would be the key, but this has a logic error. Perhaps someone here can offer some advice? -- create start timer gracetimer = CreateTimer(3000) ListenEvent(EVENT_TIMERTICK,gracetimer,OnGraceTimer) -- Enable physics self:SetPhysicsMode(PHYSICS_RIGIDBODY) self:SetCollisionType(COLLISION_PLAYER) self:SetMass(1) -- Create camera self.camera = CreateCamera(self.world) self.camera:SetPosition(self.entity:GetPosition()) --we need to save the position of the entity so that we can reset to it startpos = self:GetPosition() end --timer callbacks function OnGraceTimer() Print("timer Worked") gracetimer:Stop() gamestarted = true end function myPlayer:Sound() hit = LoadSound("Sound/Music/hit.mp3") end -- collision function myPlayer:Collide(entity) if entity:GetCollisionType() == COLLISION_SCENE then hit = LoadSound("Sound/Music/hit.mp3") hit:Play() Print("Game Over!") isgameover = true end end --player movement function myPlayer:Update() local vel = self:GetVelocity() if gamestarted == true then vel.z = self.speed end vel.x = 0 self.entity:SetRotation(0,0,0) if self.window:KeyDown(KEY_SPACE) then vel.y = self.jumpforce end self:SetVelocity(vel) -- Game is over, so lets reset the player back to the starting position and resume after 3 seconds if isgameover == true then self:SetPosition(startpos) isgameover = false end -- Update camera self.camera:SetPosition(self.entity:GetPosition()) self.camera:Move(0,1,-3) end
-
Sweetgebus started following Learning by doing. Simple Game project.
-
Hello all, in my attempt to learn scripting in Leadwerks 5, I figured I could start a thread here and update my progress. I have a small understanding of some things so far. I’ve been working on a learning project for the past week. The idea is a Flappy Bird-style game, or an old-school helicopter game if any of you are old enough to remember that game. The player, “Cube,” flies forward at a constant velocity without player input. When the player hits the space key, the cube will jump. If the player hits the ground or any object, they reset to the beginning. Learns goals for this project include Storing the distance traveled by the player. Saving the highest distance traveled as a high score. Adding power-ups, such as momentarily slowed movement, that the player can use for difficult sections. Said power-ups, when collided with, would be stored rather than immediately executed, so the player can use them when they need them. I figured this would be a good starting point for learning. I will post screenshots and code throughout the game's progress, along with the current goal I’m working on. Any help and advice would be greatly appreciated. I’ve always wanted to learn scripting, and once I found Leadwerks, I knew it would be my engine of choice.
- Today
-
11
-
Asking it now and will post answer once will get it.
-
Well, the good news is they didn't put out an engine-breaking driver. I have 25.11.1 installed now and the editor runs fine. I am testing on a 6600, so it's not exactly the same card, but it is likely to act the same. The only thing I can do now is get a 9xxx series card and make sure it is working, although I would be surprised if it had a problem. Do you know if this user has win 10 or 11?
-
Installing this driver now...
-
It's latest drivers
-
We had a lot of problems with some not-too-old AMD drivers earlier this year. Updating the drivers should be the first step.
-
Josh started following Game no launching on AMD 9070 XT
-
Dreikblack started following Game no launching on AMD 9070 XT
-
At EVENT_STARTRENDERER data = 0, event text is empty (or have " ", not sure), white window. SelectDevice cpp included to project. It happens not on my PC, so can't debug. Same with simple code. What can be done to fix it? #include "Leadwerks.h" using namespace Leadwerks; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Leadwerks", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a world auto world = CreateWorld(); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a camera auto camera = CreateCamera(world); camera->SetClearColor(0.125); camera->SetPosition(0, 0, -4); //Create a light auto light = CreateBoxLight(world); light->SetRotation(45, 35, 0); light->SetRange(-10, 10); light->SetColor(2); //Create a model auto model = CreateBox(world); model->SetColor(0, 0, 1); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { while (PeekEvent()) { const Event ev = WaitEvent(); if (ev.id == EVENT_STARTRENDERER) { if (ev.data != 0) { Notify(ev.text.empty() ? "Empty" : ev.text); } break; } } model->Turn(0, 1, 0); world->Update(); world->Render(framebuffer); } return 0; }
-
- Yesterday
-
Videos are now available for the Game Mechanics series. Please let me know if you find these helpful: https://www.leadwerks.com/learn/gamemechanics
-
Hmm, but you are attempting to fix something that previously didn't require a fix - I would understand these arguments/suggestions if I had purchased the Ultra Engine app as a steam app but I didn't. As I say, what I would like to happen is access to the standalone app returned as soon as possible. If this is not something you are able or willing to do then I will be forced to request a refund for the standalone version as the product is essentially unavailable at this point...
-
Steam can run offline. It might be possible to add version 4.6 as a DLC. If it works, this would add a launch option that only appears if the DLC is installed, and would let you choose to launch either version 5.x or 4.6 when you run the program.
-
Yes in effect - not that I do but I like the ability to be able to switch quickly between the versions without having to use steam's beta channel to do so. I also preferred the portability of the standalone app and that it could be used entirely offline if necessary.
-
Do you mean running Leadwerks 4 and 5 at the same time?
-
Slipgate Tactics is fully released now! Final version have 5 levels campaign with ten weapons and almost two dozens of enemies. https://gamejolt.com/games/SlipgateTactics/1022581 https://dreikblack.itch.io/slipgate-tactics
-
CJO Games started following Migrating back to Steam app 251810
-
This change to no standalone application after previously making it available as a purchasable option seems to me to be entirely unfair. I would be grateful if you would restore access to being able to install the app through the launcher (as it was previously) because at this point I am unable to use the product I paid for in the way it was intended to be used. Notwithstanding the access available through the steam launcher this prevents me from being able to use the two products that I previously had access to (which were bought separately). Unless there is a way to enable access to the two separate applications - one standalone, one through Steam - this change appears to be detrimental to the end user.
-
cxtine1171 joined the community
-
Fixed the error in the last three videos.
-
Game Mechanics video tutorial series is added on Leadwerks Game Engine beta branch. The last three videos produce an error "Error 2" (?) but there does not seem to be any problem with audio or video playing.
-
DuckGoesQuack joined the community
- Last week
-
Sharing my Original Music and Sound Effects - Over 2500 Tracks
Eric Matyas replied to Eric Matyas's topic in Game Artwork
Hey Everyone, I just uploaded a couple of new free music tracks on my Sci-Fi 14 page: "DEAD END IN SECTOR 3" (LoFi) "CYBER CITY FEVER DREAM" (LoFi) https://soundimage.org/sci-fi-14/ You can also bulk-download all of my game music at once...over 1400 tracks and growing: https://soundimage.org/ogg-game-music-mega-pack/ Enjoy, stay safe and keep creating! :-D -
The Steam app ID 251810 has the option to install the latest version, or previous versions. You can install 4.x on one machine and 5.0 on another, as long as you have Steam app ID 251810. The standalone version was created with the idea to build something that was independent from Steam. I proposed a subscription model, which would have given us stable revenue without any third parties being involved, but that was rejected by users. The standalone version is not being continued for three reasons: 95% of users preferred to buy it through Steam. Having people off Steam actually hurts the app's ranking in the Steam store, because it subtracts from daily active users. It takes a lot of time to continually compile updates and upload two different versions. This is time that could be spent adding features, writing tutorials, or helping users solve their problems. If you purchased the standalone on our website and don't already have the Leadwerks app ID on your Steam account, please contact me.
-
Epsylon started following Migrating back to Steam app 251810 and Violation of END USER LICENSE AGREEMENT
-
About that im talk about..!
-
And what about the case if someone like "me" ) have both versions ?? I my case the standalone works better than steam version (on Windows10).. But in Linux the steam version branch 4.x works better... NO freezing after project creation,and NO crashing after importing projects previusly created (even if ill transfering the projects from windows OS to linux OS its still do the same issue (( And in a standalone version the license has been deactivated ((
-
It now works nicely. Thanks for your help. I think Leadwerks can be used to build a lot of things. Not just games, but general programs as well. Thats the reasoning behind my calculator attempt. I am still trying to learn both Leadwerks and Lua/C++ ,coming from a VB background . Being used to Windows forms etc, building user interfaces with Leadwerks/Ultra Engine is quite fun.
-
Josh started following Calculator attempt
-
Your application looks very nice. Try this code: -- Get the displays local displays = GetDisplays() -- Create a window local window = CreateWindow("Calculator", 0, 0, 800, 660, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR)-- | WINDOW_RESIZABLE) -- Create User Interface local ui = CreateInterface(window) --Create buttons local sz = window:ClientSize() local x = (sz.x - 120) / 2 local y = 50 local sep = 40 -- Create widget local panel = CreatePanel(50, 50, sz.x - 100, sz.y - 100, ui.background) panel:SetColor(0, 0, 0, 1) panel:SetLayout(1, 1, 1, 1) -- Create text field local textfield = CreateTextField(70, 10, 600, 30,ui.background); textfield:SetText("0"); textfield:SetFontScale(2); textfield:SetColor(0,0,0,1) -- Row 1 local buttonMC = CreateButton("MC", 30, 30, 70, 70, panel); local buttonMR = CreateButton("MR", 110, 30, 70, 70, panel); local buttonM_Plus = CreateButton("M+", 190, 30, 70, 70, panel); local buttonM_Minus = CreateButton("M-", 270, 30, 70, 70, panel); -- Row 2 local buttonCE = CreateButton("CE", 30, 110, 70, 70, panel); local buttonC = CreateButton("C", 110,110, 70, 70, panel); local buttonPct = CreateButton("%", 190, 110, 70, 70, panel); local buttonDivide = CreateButton("/",270, 110, 70, 70, panel); -- Row 3 local button1 = CreateButton("1", 30, 190, 70, 70, panel); local button2 = CreateButton("2", 110, 190, 70, 70, panel); local button3 = CreateButton("3", 190, 190, 70, 70, panel); local buttonMultiply = CreateButton("X", 270, 190, 70, 70, panel); -- Row 4 local button4 = CreateButton("4", 30, 270, 70, 70, panel); local button5 = CreateButton("5", 110, 270, 70, 70, panel); local button6 = CreateButton("6", 190, 270, 70, 70, panel); local button_Minus = CreateButton("-", 270, 270, 70, 70, panel); -- Row 5 local button7 = CreateButton("7", 30, 350, 70, 70, panel); local button8 = CreateButton("8", 110, 350, 70, 70, panel); local button9 = CreateButton("9", 190, 350, 70, 70, panel); local button_Plus = CreateButton("+", 270, 350, 70, 70, panel); -- Row 6 local buttonPlusMinus = CreateButton("+/-", 30, 430, 70, 70, panel); local button0 = CreateButton("0", 110, 430, 70, 70, panel); local buttonDecimal = CreateButton(",", 190, 430, 70, 70, panel); local buttonResult = CreateButton("=", 270, 430, 70, 70, panel); while true do local ev = WaitEvent() if ev.id == EVENT_WIDGETACTION then if (ev.source == button1 ) then FirstNum = 1; if textfield.text == "0" then textfield:SetText("") end textfield:SetText(textfield.text.."1"); elseif (ev.source == button2) then FirstNum = 2; if textfield.text == "0" then textfield:SetText("") end textfield:SetText(textfield.text.."2"); end elseif ev.id == EVENT_WINDOWCLOSE then break end end