Community FAQ: Difference between revisions
Yugiyanagui (talk | contribs) m (shoot multiple times tips) |
(Added a Q and A) |
||
Line 1: | Line 1: | ||
==== Does Transparency work in EFOSE? ==== | |||
Yes, well, kind of. <blockquote>[[File:JessicoChan (developer).png|left|frameless]] | |||
Transparency doesn't work properly period Because it doesn't require any z-ordering | |||
Transparency is a tricky thing and requires either good z-ordering or some shader magic | |||
There is z-ordering to some degree but to use it properly you need to keep in head when exactly your half-transparent textures will be drawn. | |||
In other words - I got tired of tinkering with this and just used simple old trick of not having half transparency at all</blockquote>The work around? Well Transparency only works 50 50% or 0.5 so creating a transparent effect is to use a method called dithered transparency. (more will be written in this in time.) | |||
==== Is there a way to randomize values? ==== | ==== Is there a way to randomize values? ==== | ||
Yes. To randomize a value you use variable=RANDOM(0,100). For example<blockquote>HealPlayer=RANDOM(8,35) | Yes. To randomize a value you use variable=RANDOM(0,100). For example<blockquote>HealPlayer=RANDOM(8,35) |
Revision as of 20:02, 20 November 2023
Does Transparency work in EFOSE?
Yes, well, kind of.
Transparency doesn't work properly period Because it doesn't require any z-ordering
Transparency is a tricky thing and requires either good z-ordering or some shader magic
There is z-ordering to some degree but to use it properly you need to keep in head when exactly your half-transparent textures will be drawn.
In other words - I got tired of tinkering with this and just used simple old trick of not having half transparency at all
The work around? Well Transparency only works 50 50% or 0.5 so creating a transparent effect is to use a method called dithered transparency. (more will be written in this in time.)
Is there a way to randomize values?
Yes. To randomize a value you use variable=RANDOM(0,100). For example
HealPlayer=RANDOM(8,35)
player heal $HealPlayer
entity delete me
map return
This will use a local variable that will heal the player when collected for a random value between 8 and 35 health points.
Is there a way to make the enemy shoot multiple times?
Yes. use FSM and Insert ATTACK and READY alternately. For example
state ATTACK CHASE 0
frame 5 0.25 0 0 0 NONE
frame 5 0.25 0 0 0 NONE
frame 6 0.0625 0 0 0 READY
frame 6 0.0625 0 0 0 ATTACK
frame 5 0.25 0 0 0 READY
frame 6 0.0625 0 0 0 ATTACK
frame 5 0.25 0 0 0 READY
frame 6 0.0625 0 0 0 ATTACK
frame 5 0.25 0 0 0 READY
frame 6 0.0625 0 0 0 ATTACK
frame 5 0.25 0 0 0 READY
frame 6 0.0625 0 0 0 ATTACK
frame 5 0.25 0 0 0 READY
If READY is not inserted, the animation will play but only one bullet will be fired.