2 years ago

Ah ha! Emotes and GUI food is now Particles!
This is much quicker and cleaner! No random variables to keep track of and reset all the time!


Got rid of all the weird re-used variables.

At first I was using the ones for my cutscenes, but obviously that would cause issues if I needed to use both systems at once.

Then I swapped to using some of the Menu variables, but again that could cause issues down the line.
Now I'm just spawning them with the particle system and only need a variable to tell the GUI I'm doing emote stuff, and a timer to turn it off at the end.

[Start]

Create Food Particle

set Emote variable to "PREFOOD"

Set Timer and count it down

Create Emote Particle

set Emote variable to "FOOD"

Set Timer and count it down

set Emote variable to noone

[End]

If things end prematurely it's all fine, the emotes only draw when you're on those screens, and the timer and emote variable gets reset when you leave them.

If you eat another food before the last one is done, it clears the existing one. It would nice to have some sort of [Instant NOM] but there's really no time for it.

Might be worth changing the Emote variable to something like EmoteGUI so I can have both.



5 comments

Loading...

Next up

HMM! Well I think I've made it better? Framerate seems more stable on this poor laptop?

Not bad for built in graphics.

Too spooky!

That's not what I wanted to happen

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

3 new card packs! 1 pull of each!

We're about halfway through #Joltober, and here is some of the great art we've seen so far!

Artists are tagged in the article. Be sure to like their original posts!

Explore the tags to see even more great art!

My mam gave me her old laptop, once ive finished setting it up ill get the thanks sent out!

Got it partitioned and just setting windows and possibly Linux, given everything Microsoft is doing I think now is a good time.

Thank you for your patience

That sucks. I spent ages reworking the draw world code to make it better and it made everything slower

Guess drawing and storing the whole land, then only drawing part of it to the screen, is better than generating only part and drawing it constantly.

too late for the prompt but for #Demon i drew Charlie!

Well i'm def getting somewhere, now to make the lava glow less grid aligned

Sorry i've not been around much my tablet finally gave out and thats limited me