*Shows again....* :blink:
Hello and thank you for reading this topic!
I made a game which looks like a house-chore/maid game. The player needs to clean the furnishes around the room.
I want to make the items or the furnishes inside the room to be randomly get dirtied overtime and i don't know what's the best method to do this.
I made one but it does really lag. i have around 30 below FPS.
So i have this:
- Falcao's mouse button script (i choosed this for clicking those. tested without this but still occured)
- 20x15 map (small, right??)
- 640 x 480 resolution (not very sure if it also affects...)
- Almost 30+ events inside (maybeeee....?)
- A script that shows variable gauge bar with pictures around the screen. (I tested my project without this and it really seems that the cause of the lag is the parallel process...)
And.... Here's my very ugly method.
From the 30+ events, 10 of those runs parallel process that has a 500-1000 wait time.
The structure is this:
[wait]: 500-1000 frames (each of those 10 events are different)
[set variable]: random 1-300
[conditional]: if random equal or greater 290
[if true]: then the event will play an animation or should i say the indicator that it needs to be cleaned
The 10 events those that. (If it's possible i want more than 10 but..... impossible..)
So what's the best solution for multiple/many parallel process running around inside the map?
Or this kind of game seems not fit to the engine??
Sorry and thanks again!
Hello and thank you for reading this topic!
I made a game which looks like a house-chore/maid game. The player needs to clean the furnishes around the room.
I want to make the items or the furnishes inside the room to be randomly get dirtied overtime and i don't know what's the best method to do this.
I made one but it does really lag. i have around 30 below FPS.
So i have this:
- Falcao's mouse button script (i choosed this for clicking those. tested without this but still occured)
- 20x15 map (small, right??)
- 640 x 480 resolution (not very sure if it also affects...)
- Almost 30+ events inside (maybeeee....?)
- A script that shows variable gauge bar with pictures around the screen. (I tested my project without this and it really seems that the cause of the lag is the parallel process...)
And.... Here's my very ugly method.
From the 30+ events, 10 of those runs parallel process that has a 500-1000 wait time.
The structure is this:
[wait]: 500-1000 frames (each of those 10 events are different)
[set variable]: random 1-300
[conditional]: if random equal or greater 290
[if true]: then the event will play an animation or should i say the indicator that it needs to be cleaned
The 10 events those that. (If it's possible i want more than 10 but..... impossible..)
So what's the best solution for multiple/many parallel process running around inside the map?
Or this kind of game seems not fit to the engine??
Sorry and thanks again!