Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


strange speedhack behavior

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
doninss
Newbie cheater
Reputation: 0

Joined: 01 Apr 2016
Posts: 13

PostPosted: Thu Mar 12, 2026 7:11 pm    Post subject: strange speedhack behavior Reply with quote

I use speedhack because I have to. The games I like to play move too fast for me at my age. Usually I have no problems. I always turn of Vsync.

game: BIOMORPH

Speedhack works fine until I take damage, at which time it reverts to normal speed. Hitting a hotkey enable it again, until I get hit.

I am using AHK to spam hotkeys, which works but is not ideal. Any ideas?

Thanks.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1557

PostPosted: Fri Mar 13, 2026 5:26 am    Post subject: Reply with quote

Hi! This is a common issue where the game engine resets the time scale after certain events like taking damage or scene transitions.

Instead of using an external AHK script to spam keys, you can use this Lua Script directly inside Cheat Engine. It monitors the game speed every 100ms and forces it back to your preferred setting if it changes.

How to use:

    Open Cheat Engine and your game.

    Go to Table -> Show Cheat Table Lua Script.

    Paste the code below.

    Click Execute Script.

    Press F8 in-game to toggle the guard on/off.


Code:
local targetSpeed = 0.5
local checkInterval = 100

-- 1. Cleanup existing objects to prevent duplication
if speedTimer then speedTimer.destroy(); speedTimer = nil end
if speedHotkey then speedHotkey.destroy(); speedHotkey = nil end

-- 2. Direct Logic: If it's not what I want, fix it.
local function speedCheck()
    local currentSpeed = speedhack_getSpeed()
   
    -- If the speed deviates from target, force it back
    if currentSpeed ~= targetSpeed then
        speedhack_setSpeed(targetSpeed)
    end
end

-- 3. Timer Setup (Off by default)
speedTimer = createTimer(nil, false)
speedTimer.Interval = checkInterval
speedTimer.OnTimer = speedCheck

-- 4. Toggle function
local function toggleSpeedGuard()
    if not speedTimer.Enabled then
        speedTimer.Enabled = true
        speedhack_setSpeed(targetSpeed)
        print("Speed Guard: ON - Forcing speed to " .. targetSpeed)
    else
        speedTimer.Enabled = false
        speedhack_setSpeed(1.0) -- Reset to normal
        print("Speed Guard: OFF - System released")
    end
end

-- 5. Hotkey Registration
speedHotkey = createHotkey(toggleSpeedGuard, VK_F8)

print("Script Ready. Press F8 to lock/unlock speed.")


This approach is much cleaner than AHK as it handles the logic internally and only intervenes when the speed actually resets.
Enjoy it![/list]

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites