[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

legacyblade

Just a quick question, does anyone know how to create an event with a script call? I've found a script that can create events, but it's laggy, and incompatible with many scripts. I want to know how to create a basic event that can be turned into an enemy. I know it is possible to do event renaming, but it would be a pain to do that for what I have planned. (a really BIG pain)

winkio

$game_map.events or something of the sort is the array of events on the map.  you could make an empty event with ID 3 lets say, and then when you want a new event, it would be something like $game_map.events.push($game_map.events[3]).  Immediately store what index it went into with index = $game_map.events.size.  Then, you would need to rename and change position with something like: $game_map.events[index].name = "\e[3] monster man"; $game_map.events[index].x = 3, and so on and so forth.  Thats all i got for now...

G_G

I know this is not in the manual for sure  :)
Where are the HUD, minimap, and hotkey x and y coordinates?

Blizzard

Class Hud, class Hotkey_Assignment and class Minimap.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

March 01, 2009, 09:02:38 am #1604 Last Edit: March 01, 2009, 09:05:35 am by game_guy
thanks blizzard. Also I'm having troubles with summons,

I have an item, a Whistle, but its not calling the dog when I use it. Just making teh sound and yes I configured it correctly. I configured it in the Blizz Config.

Blizzard

Make a demo and upload it.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Makasu

March 01, 2009, 12:14:28 pm #1606 Last Edit: March 01, 2009, 12:26:12 pm by Makasu
Hey I don't know if anybody else is getting this problem but the run animation won't play at all. Unless it was changed? I have it saved as character.png & character_run.png but the it just walks really fast instead of displaying the sprite tied to it.

EDIT: And I also get an error if I move while jumping. I tries to search for _jmp

I've included a screen to show you what I'm talking about.

Error: ShowHide
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




winkio

I ran into this before, and posted my solution a few pages back:

Quote from: winkio on February 14, 2009, 10:50:05 am
For now, I'm having this weird error that I can make little sense of.  In sprite_update of Map_Actor in Part 3, you handle the run/jump/sneak sprite changes.  For some reason for me, it errors out because it looks for files name "_run.png" instead of "Creek_run.png".  All I can think of it that you are somehow initializing character_name_org too early, as in you are setting it to the character name before the character name is actually set, resulting in character_name_org being set to nil.

EDIT: ok, I did some testing, and have some more info.  Basically, the main actor works fine, but for some reason, the caterpillar or party members (even though it is empty) switches to the _run sprite as I am running.  It is really quite wierd.  I guess you need to fix the empty caterpillar slot update thing.

EDIT2:  I fixed it by adding in:
return if @character_name_org == ''

at the beginning of sprite_update.  Basically, it was trying to change suffixes even if there was no sprite.


If you didnt get that, just add
return if @character_name_org == ''

at the beginng of sprite_update in part 3 (its around line 2036)

Makasu

@Winiko: That sorta worked but now its all weird like when he runs. Like he's an old school cartoon y'know? Is there any ways to fix that? Thanks in advance! *powers up*
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




winkio

I don't understand...

Makasu

Well see whenever I run it looks like he's doing the jitterbug or something weird like that or the animation just won't play. :(
But it did fix the problem with jumping.
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




winkio

Oh yeah, I remember that problem.  Here, let me find where I fixed it...

Makasu

Thank you so much. :)

But I have a new problem now.

Script "Blizz Abs pt 2" line 5655:Argument Error occured
comparisson of Float with nil failed


And I don't know whats going on there.
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




winkio

March 01, 2009, 10:08:28 pm #1613 Last Edit: March 01, 2009, 10:10:00 pm by winkio
okay, for the running sprites(the solution was so small it took me forever to find...):

in the same sprite update, in the line that says
elsif self.moving? && self.attacked <= 0 && self.running? &&


replace self.moving? with: (self.moving? || Input.dir8 != 0)

That other error sounds like an error with enemies...

Makasu

March 01, 2009, 10:11:10 pm #1614 Last Edit: March 01, 2009, 10:14:08 pm by Makasu
Ahh thanks Winkio! :3 *powers up*

Oh but do I replace the entire line or just the first part?

But yeah it only happens sometimes when I kill them. Other times it doesn't. :/
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




winkio

March 01, 2009, 10:12:47 pm #1615 Last Edit: March 02, 2009, 12:34:52 am by winkio
Its something with the system not cycling out enemies soon enough after they are killed... There are actually a couple of other bugs related to the same problem...

BTW Blizz - have you been keeping up with the problems/solutions I've been posting?

Blizzard

I screenshot them all, don't worry.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Makasu

March 02, 2009, 04:11:12 pm #1617 Last Edit: March 02, 2009, 04:32:31 pm by Makasu
Hey there is there a way to get bullets and shurikens and boomerangs not to travel through walls? I know this might sound dumb but I've been trying for the past hour with no success. :p

EDIT: Nevermind I got it.  :^_^':
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]




Blizzard

When you define the walls as "walls", they won't go through. :P No, seriously. Use a "Wall Terrain Tag" to define tiles that will act as walls.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Makasu

Script "Blizz Abs pt 2" line 5655:Argument Error occured
comparisson of Float with nil failed


Does anybody possibly know whats causing this and/or how to stop it? I mean its something with the enemies but like I said earlier it just shows up randomly at times.
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]