Discuss Scratch

MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

So, I'm making a QTE game. Y'know, like the whole game is a series of QTE's?
Kind of like “Dragon's Lair” from 1983? I've got all of the code and animations down for the first QTE.
But for some reason when the timer hits zero you don't lose. My code looks fine though. I even coded the timer to stop whenever it hit zero, but that doesn't work either.

Can someone help?

Last edited by MonochromePizza (March 27, 2024 06:13:47)


Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)
MrKingofScratch
Scratcher
100+ posts

Having Trouble With a QTE Game (Quick Time Event)

It would be helpful if you shared the project!

This sounds really interesting and I would love to help out if you could share it.

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

Bet

Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)
MrKingofScratch
Scratcher
100+ posts

Having Trouble With a QTE Game (Quick Time Event)

can you post the link when you share it?

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

Here ya go: https://scratch.mit.edu/projects/988654259/

Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)
MrKingofScratch
Scratcher
100+ posts

Having Trouble With a QTE Game (Quick Time Event)

The timer is skipping over 0! use
<(timer) < [0]>
instead of
<(timer) = [0]>
Also, a lot of your code can be optimized. For example, instead of
forever
if <> then
end
end
you can use
forever
wait until <>
end
and instead of your animation code you can use
switch costume to [first costume v]
repeat (this number should be 1 less than the number of frames (costumes) in the animation)
wait (0.125) secs
next costume
end
or
repeat until <(costume name) = [final costume name]>//costume name is a variable in the looks category, it doesn't 
wait (0.125) secs //--------------------------------------------------show in forums
next costume
end
I hope this helped!

Last edited by MrKingofScratch (March 27, 2024 06:57:29)


Last edited by kaj (Tomorrow 00:00:00)
100th post!
MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

Thanks! I managed to fix it! I'm adding more to it now.

Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)
MrKingofScratch
Scratcher
100+ posts

Having Trouble With a QTE Game (Quick Time Event)

nice.

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

Hey, I really appreciate the help you help you gave me.
I just wanted to keep you updated on the game's progress:

There are now 3 QTEs total also with an unfinished fourth one, and I made
an anti-spamming system that makes you lose if you press the wrong button.

Without your help I probably would've given up on this, so thanks.
I'll make sure to credit you when the game is finally finished.


Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)
MrKingofScratch
Scratcher
100+ posts

Having Trouble With a QTE Game (Quick Time Event)

Cool! in the future, if you see a thread that hasn't been posted on in a while, you shouldn't post again on it, but i'm glad it could help you.

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MonochromePizza
Scratcher
6 posts

Having Trouble With a QTE Game (Quick Time Event)

Oh, my bad.

But just one more thing.
Do you know any ways I can get the game popular when it's finished or almost finished?
(Besides advertising on other peoples' projects?)

Sincerely,

MonochromePizza

(Or, in other words, some person on the internet who isn't very good at coding)

Powered by DjangoBB