Some newb questions

Started by BlackCurtain, October 22, 2010, 02:25:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


BlackCurtain

Btw, are there any FPG editors in English? I can get by with the GUI icons but it would be a lot more convenient with some English labels.

DCelso

Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

BlackCurtain

#18
Quote from: DCelso on October 25, 2010, 12:57:33 PM
FPG Edit 2009
Oh, I didn't notice there was an option to switch the language. Thanks :)

Another quick question: is it possible to render simple shapes in mode 7 with Bennu? Like flat walls and boxes or anything other besides sprites and flat horizontal surfaces?

EDIT: Nvm, I read up on the limitations of mode 7 on wikipedia so I guess my walls and boxes are out.

Drumpi

Wall and boxes are only on mode8. M8 is not supported on Fenix/Bennu.
But we have similar libraries like Bennu3D, ETD, VSE or Yeti to do some 3D.

But if you want to still use mode7, look for "mod_expand" for simple 3D texture simulation, and it's very easy to port if you need.
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)

BlackCurtain

#20
Thanks :) Nah, I'm good with 3D atm. Been doing advanced 3d games for about 5-6 years and I already have a solid 3D engine, so now I want to kick it old-school on portable consoles ;)

BlackCurtain

#21
Ok I'm back again with a problem I can't figure out. I'm currently working in Mode 7 and trying to get the players ship to shoot, it works but only if the player is located at 0,0. Here's my code

process shoot(x,y,angle)
begin
   
   graph=1;
   ctype=c_m7;
   cnumber=c_0;
   //x=father.x; //Tried this too, but then it only shoots from 0,0 regardless of the player location
   //y=father.y; //Tried this too, but then it only shoots from 0,0 regardless of the player location
   
   while (not out_region(id,0))
       
   advance(16);
   frame;  
   end

end

Player controls:

if (key(_w)) advance(100); end
if (key(_s)) advance(-100); end
if (key(_a)) angle+=2000; end
if (key(_d)) angle-=2000; end
if (key(_control)) shoot(x,y,angle); end


So how do I get the bullets to always shoot out from the players x/y position in a mode7 view?

Drumpi

I don't know if you can use OUT_REGION on mode7, try to change it to a simple LOOP, and don't move the shoots. You can see where they appear this way (and can debug easily).
And resolution must be the same as father, don't forget it.

And maybe... you don't set FILE variable of shoots, be carefull.
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)

BlackCurtain

#23
Quote from: Drumpi on October 27, 2010, 11:36:57 PM
I don't know if you can use OUT_REGION on mode7, try to change it to a simple LOOP, and don't move the shoots. You can see where they appear this way (and can debug easily).
And resolution must be the same as father, don't forget it.

And maybe... you don't set FILE variable of shoots, be carefull.
Don't move the shots? How should I make them move then? And why shouldn't I set the file variable on shots? What's a better way?

EDIT: The resolution thing fixed the problem. Thanks.

Drumpi

If you can't see a static shoot, how could you see a moving shoot? ;)
And i wanted to say that you MUST set the FILE variable every time you can. It's only a suggestion, but very usefull when you load more than one FPG.
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)

BlackCurtain

#25
I understand what you're getting at now, but I managed to fix it :) I appreciate all the suggestions. It was a long time I felt this noob. I perfectly understand the syntax of Bennu now but there's too many functions to learn in just a couple of days, what variables to use and where to put them, but I'll get there.

I understand that my sprites can have several control points which I find very convenient, but I don't quite understand how to access them, let say if I wanted my ship to shoot from 2 places at once. What does the INT POINTER x and INT POINTER y parameters do for get_point and how do I use the function properly to set the starting point for the shots? Do I need those parameters at all if the sprite already has control points?

Btw, sorry for all the questions, but the documentation is very slim and I don't understand much of the spanish forums and examples, so I very much appreciate your help.

EDIT: Nvm, I think I've got it. I just have to be patient and I'll get it right eventually :P Thanks for your help all!

BlackCurtain

The FPG Edit 2009, how come when it converts to 8-bit it turns every color blue/purple? Even if I make it with the proper 8-bit colors in Photoshop, it still turns blue in the editor.

DCelso

When you create a new  8bits ftg, You need load a palette before press "accept" button, and after, you only can introduce images with colors that are in the loaded palette if you want have the same colors.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

BlackCurtain

Quote from: DCelso on October 29, 2010, 05:48:11 PM
When you create a new  8bits ftg, You need load a palette before press "accept" button, and after, you only can introduce images with colors that are in the loaded palette if you want have the same colors.
I see. Though I found a work-around, if I checked the "Preserve exact colors" when indexing the sprite in Photshop, it turned up OK in the editor. Thanks for the tip btw!

Drumpi

I'm 8 years old with div-likes and still can't use all functions of Bennu ;D So don't worry. Absolutly noone could use all DIV/Fenix/Bennu full power.
Just work with functions you need and you will learn step by step ;)
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)