Author Topic: Danmakufu Q&A/Problem thread number 4  (Read 206610 times)

Re: Danmakufu Q&A/Problem thread number 4
« Reply #690 on: January 06, 2011, 07:10:23 PM »
What I hear you saying is that the hitbox is a (rectangle?  square?  circle?) centered on the image but the size of the hitbox is not the size of the image.  Is that correct?  Do we know the proportion?

Re: Danmakufu Q&A/Problem thread number 4
« Reply #691 on: January 06, 2011, 07:14:33 PM »
It's a circle, with a radius of about half the smallest two parallel sides. ScriptVersion[3] allows hitbox size declaration in shot files, but mkm still hasn't released it :(

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #692 on: January 06, 2011, 07:16:36 PM »
ScriptVersion[3] allows hitbox size declaration in shot files, but mkm still hasn't released it :(
METAL FATIGUE BULLETS will be so fun. Oh so fun.

Iryan

  • Ph?nglui mglw?nafh
  • Cat R?lyeh wgah?nagl fhtagn.
Re: Danmakufu Q&A/Problem thread number 4
« Reply #693 on: January 06, 2011, 07:22:31 PM »
METAL FATIGUE BULLETS will be so fun. Oh so fun.
Pffft, pushover. Mima's final form bullets, now THOSE will be fun.  >:D
Old Danmakufu stuff can be found here!

"As the size of an explosion increases, the numbers of social situations it is incapable of solving approaches zero."

Re: Danmakufu Q&A/Problem thread number 4
« Reply #694 on: January 06, 2011, 07:39:24 PM »
I'm glad I asked.  My card would've been hateful.

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #695 on: January 06, 2011, 08:48:23 PM »
Object oddities galore!
http://pastebin.com/RSFaJvMn
This code is supposed to create a beam from the player, aimed at the angle the task was called with (Only supposed to be used with the angles inside the if statements at the top). After that, the angle changes so it eventually reaches the main laser of the bomb (Aimed at 270 degrees, AKA straight up). However, I'm getting some rare behaviors on the lasers. Help a bro?

Re: Danmakufu Q&A/Problem thread number 4
« Reply #696 on: January 07, 2011, 01:09:19 AM »
Can you get rid of the shiny glow at the base of a CreateLaserA?

Drake

  • *
Re: Danmakufu Q&A/Problem thread number 4
« Reply #697 on: January 07, 2011, 01:46:44 AM »
Can you get rid of the shiny glow at the base of a CreateLaserA?
ObjLaser_SetSource(false);

No, you can't.

Zengar I'm going to have to draw your stuff out to be able to understand it :V

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Laplace

  • Crossing Demon
  • Easily confused by danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #698 on: January 07, 2011, 06:53:11 PM »
I'm probably living proof that stickies aren't to be read
How do you get a coordinate in an image?
For example, I made a sprite sheet and in that sprite sheet, there's well a sprite
that I want to use as a life image.
Is this trial and error or is there something I'm missing to find said coordinates?
desudesudesu

Iryan

  • Ph?nglui mglw?nafh
  • Cat R?lyeh wgah?nagl fhtagn.
Re: Danmakufu Q&A/Problem thread number 4
« Reply #699 on: January 07, 2011, 06:56:31 PM »
I'm probably living proof that stickies aren't to be read
How do you get a coordinate in an image?
For example, I made a sprite sheet and in that sprite sheet, there's well a sprite
that I want to use as a life image.
Is this trial and error or is there something I'm missing to find said coordinates?
1. Open the image in MS Paint or a similar program.
2. Zoom in as much as neccessary
3. Move your mouse to the location you want the coordinate of. It should be displayed at the bottom of the window, iirc.
Old Danmakufu stuff can be found here!

"As the size of an explosion increases, the numbers of social situations it is incapable of solving approaches zero."

Laplace

  • Crossing Demon
  • Easily confused by danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #700 on: January 07, 2011, 07:05:25 PM »
1. Open the image in MS Paint or a similar program.
2. Zoom in as much as neccessary
3. Move your mouse to the location you want the coordinate of. It should be displayed at the bottom of the window, iirc.

Oh my
So simple
Thanks Iryan, you are the best or something similar.
:V
desudesudesu

Drake

  • *
Re: Danmakufu Q&A/Problem thread number 4
« Reply #701 on: January 07, 2011, 07:33:31 PM »
You can also enable it in Photoshop with F8 or Window->Info.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Re: Danmakufu Q&A/Problem thread number 4
« Reply #702 on: January 07, 2011, 10:21:49 PM »
Object oddities galore!
http://pastebin.com/RSFaJvMn
This code is supposed to create a beam from the player, aimed at the angle the task was called with (Only supposed to be used with the angles inside the if statements at the top). After that, the angle changes so it eventually reaches the main laser of the bomb (Aimed at 270 degrees, AKA straight up). However, I'm getting some rare behaviors on the lasers. Help a bro?

DMF chokes on ObjEffect_SetAlphaGreen and I can't find it in either the wiki or the Japanese manual.  Where does it come from?  Also, what's your BeamImage?  I know how it feels when you don't want to release a project before it's done, but maybe you should mock up a full player script that we can test with?  Or maybe describe better what the lasers are doing for you.

Laplace

  • Crossing Demon
  • Easily confused by danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #703 on: January 08, 2011, 12:09:43 PM »
You can also enable it in Photoshop with F8 or Window->Info.

So that's what that tiny window above Swatches is.
Thanks.

Edit2;

Been working on something basic, with DoubleVia's tutorials on Youtube
This time I wrote the code directly on a Notepad file as I watched the videos instead of writing down stuff in my sketchbook.


http://pastebin.com/5nfdYFqA

What am I doing wrong in that script, now?  :ohdear:
When I run it this error pops up, now.

http://i51.tinypic.com/vsjg60.jpg

Did you guys had the same issues when you first started basic scripting? v__v

« Last Edit: January 08, 2011, 07:10:05 PM by Laplace »
desudesudesu

Re: Danmakufu Q&A/Problem thread number 4
« Reply #704 on: January 08, 2011, 03:32:42 PM »
"SetMovePosition" isn't a function. <.<

The (simplest?) functions to move the enemy to coordinates "X, Y" are

SetMovePosition01(x, y, speed);
SetMovePosition02(x, y, frames);
SetMovePosition03(x, y, weight, max speed);

So if you want to move the boss to the center, with a speed of 6, the correct function is
SetMovePosition01(GetCenterX, GetCenterY, 6);
« Last Edit: January 08, 2011, 03:38:09 PM by Luna »

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #705 on: January 08, 2011, 04:58:19 PM »
DMF chokes on ObjEffect_SetAlphaGreen and I can't find it in either the wiki or the Japanese manual.  Where does it come from?  Also, what's your BeamImage?  I know how it feels when you don't want to release a project before it's done, but maybe you should mock up a full player script that we can test with?  Or maybe describe better what the lasers are doing for you.
This ain't a problem. SetAlphaGreen is a function made by myself to set all the Vertices' color to green (And set their Alpha value).
http://www.mediafire.com/?7e93f7gt12kgq0c
This is it complete. I'm having problems mostly with the trig stuff however, all the rest of the functions and whatnot are already tested.

Re: Danmakufu Q&A/Problem thread number 4
« Reply #706 on: January 08, 2011, 08:03:10 PM »
Can I ask a question since it's about questions and answers? Umm ok so I was wondering if danmakufu could be runed without applocale just by going to control panel->language and region->administrative->japanese (japan) Or do I Have to download applocale cause I'd rather not. :)
FlANnnnN :P

Laplace

  • Crossing Demon
  • Easily confused by danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #707 on: January 08, 2011, 08:06:56 PM »
Can I ask a question since it's about questions and answers? Umm ok so I was wondering if danmakufu could be runed without applocale just by going to control panel->language and region->administrative->japanese (japan) Or do I Have to download applocale cause I'd rather not. :)
Well I did that once and the programs that needed to be run with Applocale didn't need Applocale anymore.
Try it out for yourself and good luck.
desudesudesu

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #708 on: January 08, 2011, 08:14:13 PM »
It works, but many things that do not need Applocale may start to misfunction.

Re: Danmakufu Q&A/Problem thread number 4
« Reply #709 on: January 08, 2011, 10:08:37 PM »
The biggest pain is how it replaces most backslashes with yen signs.  And some of the more portably written programs will auto-reskin to japanese.  Apple Update will, for example.

Drake

  • *
Re: Danmakufu Q&A/Problem thread number 4
« Reply #710 on: January 08, 2011, 10:53:18 PM »
Setting Windows Locale to Japanese is definitely the easiest way, but honestly installing Applocale and the right-click extension is the most flexible option out there. The only more flexible one would be a command-line parameter.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Re: Danmakufu Q&A/Problem thread number 4
« Reply #711 on: January 09, 2011, 02:59:27 AM »
This ain't a problem. SetAlphaGreen is a function made by myself to set all the Vertices' color to green (And set their Alpha value).
http://www.mediafire.com/?7e93f7gt12kgq0c
This is it complete. I'm having problems mostly with the trig stuff however, all the rest of the functions and whatnot are already tested.

I'll be honest, I suck at trig.  I started from scratch.  Works.

http://www.mediafire.com/?gixuq8gd48p54zd

Got the GetPointInDirection function from the helpful code snippets thread, even.

KuraiShoka

  • Now son, don't touch that cactus...
  • Son, I Am Dissapoint
Re: Danmakufu Q&A/Problem thread number 4
« Reply #712 on: January 09, 2011, 04:25:47 AM »
I should've come here a while ago  :V
I have a script I'm working on that requires lasers to bounce on the screen. But for some reason they delay when bouncing off the top, and don't change position when bouncing off the side.

http://pastebin.com/UdbsSgxU

Can someone help me with this?

Re: Danmakufu Q&A/Problem thread number 4
« Reply #713 on: January 09, 2011, 02:17:17 PM »
Well I did that once and the programs that needed to be run with Applocale didn't need Applocale anymore.
Try it out for yourself and good luck.
Ok thanks! :)
FlANnnnN :P

Re: Danmakufu Q&A/Problem thread number 4
« Reply #714 on: January 09, 2011, 04:30:50 PM »
I should've come here a while ago  :V
I have a script I'm working on that requires lasers to bounce on the screen. But for some reason they delay when bouncing off the top, and don't change position when bouncing off the side.

http://pastebin.com/UdbsSgxU

Can someone help me with this?

I'm not at home and can't test but you may want to compare yours to this reflection function:
http://www.shrinemaiden.org/forum/index.php/topic,5164.msg339908.html#msg339908

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #715 on: January 09, 2011, 04:57:28 PM »
GetPointInDirection
arghagh how did I didn't notice this

KuraiShoka

  • Now son, don't touch that cactus...
  • Son, I Am Dissapoint
Re: Danmakufu Q&A/Problem thread number 4
« Reply #716 on: January 09, 2011, 05:09:10 PM »
I'm not at home and can't test but you may want to compare yours to this reflection function:
http://www.shrinemaiden.org/forum/index.php/topic,5164.msg339908.html#msg339908

Worked like a charm, thanks!

Re: Danmakufu Q&A/Problem thread number 4
« Reply #717 on: January 09, 2011, 05:33:43 PM »
arghagh how did I didn't notice this

I know you're just kidding around but I have a serious answer for you.  In the snippets thread a lot of people post big colored headers for their functions, which trains you to look for that while cruising it.  When someone posts something plain like this:

http://www.shrinemaiden.org/forum/index.php/topic,5164.msg494187.html#msg494187

You just skip over it.  It's the same reason I missed the line about "Post questions in this thread."  I found a comic strip once that preyed on this, big balloon in the last panel that says "I bet you read this one first!" and a smaller one in the first panel that said, "It's too late now to come back here."

I'm only saying this so I can add:  I *really* want to do some psychology of vision tests with danmakufu and see how people react.  Unfortunately a lot of them probably fall under "tricking the player" so... I'm hesitant.
« Last Edit: January 09, 2011, 05:42:28 PM by Tubercular Ox »

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #718 on: January 09, 2011, 05:51:03 PM »
http://www.shrinemaiden.org/forum/index.php/topic,5164.msg494187.html#msg494187
Now that I see it, GetPointInDirectionFromPlayer would also be rather useful for hitbox declaration. Thanks!

KuraiShoka

  • Now son, don't touch that cactus...
  • Son, I Am Dissapoint
Re: Danmakufu Q&A/Problem thread number 4
« Reply #719 on: January 10, 2011, 12:22:12 AM »
Sorry for bothering again :V

I'm trying to get my object laser to bounce off the screen using this method:
http://www.shrinemaiden.org/forum/index.php/topic,5164.msg339908.html#msg339908

I'm trying to modify it so that my laser can bounce off the bottom as well, but I can't get it to work.