Gideon Syrus
Member
Very exciting trailer and very well done, thanks for sharing, waiting for this magnificent release
Mr.Q! said:O Ilusionista you know, I'm having some video framedrops in the latest stages in my game, any ideas of what should I put in the updated.c for preventing that to happen? maybe 'cause i'm using some enemies with shadow trails script or something else? don't have too many ideas myself why that might be happening, but just as a reventive thing
#include "data/scripts/trailer.h"
void main()
{
int i, j, k;
void spr;
int facing, cd;
float a, z, x;
for(i=1; i<=trailermax; i++)
{
spr = getglobalvar("trailer"+i+".s");
if(spr)
{
cd = getglobalvar("trailer"+i+".c");
if(!cd)
{
setglobalvar("trailer"+i+".c", NULL());
setglobalvar("trailer"+i+".s", NULL());
setglobalvar("trailer"+i+".x", NULL());
setglobalvar("trailer"+i+".z", NULL());
setglobalvar("trailer"+i+".a", NULL());
}
else
{
if(openborvariant("game_paused")==0)
{
setglobalvar("trailer"+i+".c", cd-1);
}
x = getglobalvar("trailer"+i+".x");
z = getglobalvar("trailer"+i+".z");
a = getglobalvar("trailer"+i+".a");
facing = getglobalvar("trailer"+i+".f");
setdrawmethod(NULL(), 1, 256, 256, facing, 0, 0, 6, 0);
drawsprite(spr, x-openborvariant("xpos"), z-a-openborvariant("ypos"), z-i, 0);
setdrawmethod(NULL(), 0, 256, 256, 0, 0, 0, 0, 0, 0);
}
}
}
}
int trailermax = 50; //total trailers the engine can handle
int trailerc = 5; // totally 5 trailer images for each character
int trailerd = 5; // delay to spawn next trailer, so trailer lasts for trailermax*trailerd
O Ilusionista said:Oh that is the old code. Don't use this, at all.
Search for Malik shadow trail where. It uses ondrawscript, which is lighter.
nsw25 said:new engine ? so the update to engine is being released or you just got early access ? I would like early access also as I am getting people complaining about engine specific issues which is damaging the reputation of openbor and us all… if these issues are fixed then I don't see reason to not release a update so we can all save face...
Anyone can compile the code to get "early access". But if someone doesn't know how to compile it, the "early access" won't be useful at all.I would like early access
if these issues are fixed then I don't see reason to not release a update so we can all save face...
nsw25 said:... engine specific issues which is damaging the reputation of openbor and us all… if these issues are fixed then I don't see reason to not release a update so we can all save face...
BTW Are you familiar the Raspberry pi3 latest version of Openbor? I think I have got the "latest" version but somehow I'm getting some errors while tryin my mod, well just about some type text entities not showing properly or the engine ignoring their setlayer value at all, because they are getting spawned behind the back panel. I have Retropie in my system and I've seen some peeps have compiled something the call the latyest version but I wonder if it's the real latest version of Openbor anyways.