[XP] Mode 7 (by MGCaladtogel)

Started by Blizzard, March 09, 2008, 11:00:05 am

Previous topic - Next topic

Phasedscar

Mode7 tends to be better for a side scrolling game rather then forward and backward.  However if you've ever played FFVI it's the exact same thing that was used on the overworld map.  This script is perfect for those 2 main things, but on small maps because of layering and things like that, it tends to have a lot of graphical, and logistical problems.

I suggest using it somewhat sparingly.  But if you want to make tents and things like that, just copy it from the tilesets and make a character set for them on say.. a 640x640 (160x160 tiles) format.  That should give you the "pop up" feel.  When it comes to things like walls at a length, there really is no way to make those look right, but the best way is to have just parts of the wall as individual character sprites (32x32 for those) and it should look ok.
Spoiler: ShowHide
My own game project & My resource workshop! (respectively)
http://forum.chaos-project.com/index.php?topic=608.0 http://forum.chaos-project.com/index.php?topic=682.0



What that is? Affection area for flails. - Blizz-ABS, the ultimate ABS

The pictures in your signature may altogether be no more than 200kB. The height must not exceed 200 px and the width must not exceed 800 px. Altogether they may take up an area of 160000 px2. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature.

Ryex

Quote from: WcW on March 11, 2008, 08:21:18 am
On my PC running XP with 2.2 Ghz processor and 1 gig ram, I can hardly notice it at all. But this just shows how slow Ruby is compared to other languages, and even then the speed at which Ruby does stuff is astounding sometimes to me. I can hardly imagine the speed of C++/Java...

So you know ruby is and INCREDABULY slow language compared to C++ the reason is because of how simplified  it is. The C++ equivalent of a 3 line Method is probably 9 -10 lines eg. A 2000 line ruby script is 12000 + is C++.  I doubt that you could go any simpler with out the need for a photonic transistor in the processer (about 20 times faster than a normal) and that, so you know, has not been invented in a working form yet
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

fugibo

Uhm... What's the point of saying that? I already know that stuff. But, think about it, C++ does have some useless stuff about it. A more Ruby-like syntax would  benefit it greatly.

Ryex

I Don't Know just another Random Useless fact
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

March 14, 2008, 08:03:04 am #24 Last Edit: March 14, 2008, 08:03:38 am by Blizzard
It's true, C++ has a couple of flaws. That's why Java (originally Oak) was made, they tried to use only the good stuff from C++ and kicked out many features. But what they got wasn't that good either, so Microsoft returned the strike and made C# as a Java derivative that has some good stuff added again. IDK how J# came to existence, though. O_o
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.

fugibo

Microsoft wanted their own, coffee, duh. How dumb a question was that.

Blizzard

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.

Real Mugen

If you need someone with BLIZZ ABS to test the future plug in MODE 7 i can help you guys  ;D

Fantasist

Ah, THIS was the other Mode7 script I was mentioning now and then. Very nice, isn't it?
@Blizz; love the Important Notes'. And did they correct the credits of 3DPBC in RRR?
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Blizzard

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.

diablosbud

Blizzard I think this will speed things up abit here MGCaladtogel helped me make some of the compatibility issues between Blizz-ABS and Mode07 by MGCaladtogel go away. The only issue left with Mode7 compatibility is that picking up items is harder (they get bigger and smaller but are in the air!), he's working on the rest but he hasn't replied in a while.

Well here they are 2 scripts :

This must be below Blizz-ABS: ShowHide
# Compatibility Mode7 - Blizz-ABS
# 01/04/08 - MGCaladtogel
# mode7 script must be above ABS scripts and this one below all
class Game_Player < Map_Actor
  attr_accessor :map_number_x # map's number with X-looping
  attr_accessor :map_number_y # map's number with Y-looping
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias initialize_BlizzABS_game_player initialize
  def initialize
    initialize_BlizzABS_game_player
    self.map_number_x = 0
    self.map_number_y = 0
  end
  #--------------------------------------------------------------------------
  # * Handle the option : center around the hero
  #--------------------------------------------------------------------------
  alias center_BlizzABS_game_player center
  def center(x, y)
    if !$game_system.mode7
      center_BlizzABS_game_player(x, y)
      return
    end
    $game_map.display_x = x * 128 - CENTER_X
    $game_map.display_y = y * 128 - CENTER_Y
  end
end
#============================================================================
class Player_Controller
  #----------------------------------------------------------------------------
  # passable?
  #  Checks virtual passability for the minimap.
  #----------------------------------------------------------------------------
  def self.passable?(x, y, d)
    return true if x < 0 || x >= @map.width || y < 0 || y >= @map.height
    bit = (1 << (d / 2 - 1)) & 0x0f
    [2, 1, 0].each {|i|
        tile_id = @map.data[x % width, y % height, i]
        if tile_id == nil
          return false
        elsif $data_tilesets[@map.tileset_id].passages[tile_id] & bit != 0
          return false
        elsif $data_tilesets[@map.tileset_id].passages[tile_id] & 0x0F == 0x0F
          return false
        elsif $data_tilesets[@map.tileset_id].priorities[tile_id] == 0
          return true
        end}
    return true
  end
end


This must be above Blizz-ABS: ShowHide
# Compatibility Mode7 - Blizz-ABS
# 01/04/08 - MGCaladtogel
# mode7 script must be above ABS scripts and this one below mode7 but above Blizz-ABS
#============================================================================
class Game_Character
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  alias update_mode7_obsolete_game_character update
  def update
    if !$game_system.mode7
      update_mode7_game_character
      return
    end
    if !(x.between?(0, 4*($game_map.width - 1)))
      difference = 32 * x - real_x
      if self.is_a?(Game_Player)
        self.map_number_x += difference / (difference.abs)
      end
      self.x %= (4*$game_map.width)
      self.real_x = 32 * x - difference
    end
    if !(y.between?(0, 4*($game_map.height - 1)))
      difference = 32 * y - real_y
      if self.is_a?(Game_Player)
        self.map_number_y += difference / (difference.abs)
      end
      self.y %= (4*$game_map.height)
      self.real_y = 32 * y - difference
    end
    update_mode7_game_character
  end
end


Note: Both of those compatibilites must be below Mode7. Also Mode7 must be above Blizz-ABS.

Blizzard

This is great! :) Does he care to join the forum? If he has problems during the registration because of the CAPTCHA picture, he can e-mail me and I will pre-register him an account.
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.

diablosbud

Not sure if he wants to join i'm not sure he even knows about this forum, he's only doing the compatibility for me, it's nowhere else except here and in my project. I'll still post it here because this is the most common place for Blizz-ABS thought it would help and it will majorly.

Blizzard

Ah, I see. Ok, no problem. Give him my thanks anyway if you see him. xD
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.

diablosbud

I was wondering if you could please for us with Blizz-ABS finish this compatibility for me because of the fact that MGCaladtogel has stopped replying to me and I think he quit on me :P. He hasn't replied at all this month so could you please complete this compatibility?

Blizzard

I can try, but right now I lack the time to even work on Blizz-ABS itself. I have to write my diploma thesis of 40-50 pages within the next 3 weeks. ._.
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.

diablosbud

Ouch, it's alright take your time education is more immportant than RMXP!

Real Mugen

 :D .... i try it....and doesnt work for me ...... i hope soon we can have acces to the finish compatibility...

Blizzard

I was able to type down 13 pages of text yesterday. :D
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.

Calintz

What is the purpose of a Mode 7 script??