Pixelmovement Script: v1.52 released!

Noticed another small bug with the sliding functionality (I know you have a lot on your plate already):
http://img160.imageshack.us/img160/2677/bug7wk.jpg[/img]
When trying to slide around the bits that are 1 tile away from the edge of the map (I've circled them) the character will just stop and not go around the corner for some reason.
I gound another thing in the mini map... lol IF you have a event that it's controled by a switch if you changed the switch in the same map he grafix of the evnt don't appear...
here is an example:

Event one <= it's blank event, but when you activate switch 2 it changes and became a soldier event.
so when i activate the switch IN THE SAME MAP in the mini map they don't appear with the "new look".... that's all srry if it is a bit confusing :(

Srry for being a pain in the ass... but good work! ;)
Another note f0tz!, when battle processing the outline of the minimap will still appear to where ever you have set it (in battle)...possible to remove this?

http://img388.imageshack.us/img388/3589 ... tle5di.png[/IMG]

There should also be a way to toggle the minimap on and off (or if there is, I probably missed it somewhere).
To toggle on\off the mini map find the line 147 and change

$minimap = true
Expand to see the code.


to

$minimap = false
Expand to see the code.


I hope that solves it!
Chaosg1 wrote:
To toggle on\off the mini map find the line 147 and change

$minimap = true
Expand to see the code.

to

$minimap = false
Expand to see the code.

I hope that solves it!


That would completely disable the minimap mate ;) I'm talking about toggling it on/off in game.
Srry my mistake, i thought that if we made a call script with that.... it would work...
Stupid me lol..
Fantastic script, I've wanted to do hand drawn maps and this seems like it will make them much easier to implement. Also, a couple questions, if you'll allow them.

1: Would it be possible to make the standing animation play frames out of order? As in, instead of the standing animation consisting of "Frame 1, Frame 2, Repeat" could it instead be tweaked into "Frame 1, Frame 2, Frame 1, Frame 6, Repeat"? I can provide an example if I'm not making sense.

2: Just so I'm clear, there is no way to alter the caterpillar script so that the party members following stand equally apart after the leader comes to stop instead of merging onto the same spot?
@Myonosken: Squalls Minimap is based on a map consisting of 32x32Px Tiles.. Its a completely other thing to make a minimap for a Pixelmovement Script.. ;)
(But I think this one doenst lag, too..)

@Dirtie: will be fixed soon..

@Chaosg1: wil be fixed, too!

@Wing: I just forgot to dipose the border.. will be done yet ^^

@NakedCosmonaut:

for 1: mh.. nice idea, wait for the next update.. ;)

for 2: mh.. I dont think its possible, but I'll see.. ;) (just got an idea how to do this..

-f0tz!
yea, but isn't squall's passability minimap is based on passability? may be you could have it read the zpass pic instead of database's passability setup...
this would mean 640x480 Pixel instead of 20x15 Tiles.. (for the smallest map size!) now imagine how long this would take.. ;)

but.. I think Squalls Minimap only looks different.. the other things are the same, arent they?

-f0tz!
well, you can always shrink the zpassability pic, since squall's minimap isn't that detailed. And what looks different yet other things're the same?
mh.. it would look quite stupid if the minimap only uses 32x32 Tiles.. (cause if you shrink the collision map, he ignores many small not passable parts and makes part impassable which are passable..)

anyway.. I fixed the things you told me.. ^^

*klick*

- Bugfix: Border wasnt disposed while a battle
- Caterpillar Script: option to set overlap on/off
- Bugfix: Events didnt change their graphic on the Minimap
- Bugfix: the player didnt Slide at the map border
- For frame/direction handling of events: can also be set by an array (see inside script)


btw.. keep in mind that the player needs a bit more space to slide than for walking normally.. so at very small/narray parts he wont slide.. ;)

-f0tz!
Wow, nice update man, this improves alot of things. I too was wondering about the character overlap, but looks like you figured it out.

I found something weird...you see the yellow flower on the right next to the blue haired person with the animation playing? Walk up to it on the left and keep walking into it. The screen shakes violently!!!
yeah.. this is because the char slides up and down very fast.. its not a bug, but a small mistake a made will making the collision map..

-f0tz!
Oh ok, its not a big deal, so im not too worried about it, just thought id post it.
@Kaitlyn_El_Wonderful: Thanks for the help.
ok im stupid and dont get what exactly these kind of scripts do. What do they do??
They make your character move by pixel, like when you move with the normal scripts he moves by 32 pixel, with this he moves less
=>try it<= you will see what I mean!

Anyway F0tz i found a bug (at least I think it is one), ok i have two maps and a teleport between those two maps. One is the outside of and house and is 30 by 20 and the other inside that is 25x20. when I teleport inside it gives me no error but when I go outside (and I mean every map that is not that one)
No method error in line 4482
Undefied method "character" for nil:Nilclass
Expand to see the code.


Line 4482:
cx = $scene.spriteset.character_sprites[i].character.screen_x/div
Expand to see the code.



Error Resume

- Two maps
One is 30x20 the other 25x20.
-Teleport from Big one to the small it's ok, but teleport from the small for the big one gives the error.
- No mini map gives no error.

Hope You fix.
mh.. I'll fix it..
it doesnt have anything to do with the map size but with the number of events on the map..

-f0tz!

edit: I uploaded the update..
Well, I was directed here for this script. Must say, amazing job. It's making me think it should be standard among all games (whereas most scripts, like AMS's, CMS's, etc. should be collected differently for each game to be unique). This script is just so great it deserves to be standard among all.

Also, it saves me all the work I was putting into making this script myself (and failing :P)

EDIT: That Ragnarok sprite in the isometric test looks like one that I ripped...if it is, I don't mind. I think it is though, because of the altered colour of certain things that I ripped him with.

EDIT again: Is it possible to instead of having that array of looped maps, to have it like in KGCMapLoop that looped maps have [LH], [LV], or [LHV]? The script he used for that was this:

class RPG::MapInfo
  #--------------------------------------------------------------------------
  #  — マップ名
  #--------------------------------------------------------------------------
  def name
    return @name.gsub(/\[.*\]/) {""}
  end
  #--------------------------------------------------------------------------
  #  — オリジナル名
  #--------------------------------------------------------------------------
  def original_name
    return @name
  end
  #--------------------------------------------------------------------------
  #  — 横方向ループ
  #--------------------------------------------------------------------------
  def horizontal_loop?
    return @name =~ /\[L[ ]*([HV]+)\]/i && $1.upcase.scan(/./).include?("H")
  end
  #--------------------------------------------------------------------------
  #  — 縦方向ループ
  #--------------------------------------------------------------------------
  def vertical_loop?
    return @name =~ /\[L[ ]*([HV]+)\]/i && $1.upcase.scan(/./).include?("V")
  end
end
Expand to see the code.

This also returned the name for location scripts without anything inside of [brackets]. And to tell if a map had a map loop, you would call:

$data_map = load_data("Data/MapInfos.rxdata")
$data_map[$game_map.map_id].horizontal_loop? #True if looped horizontally, false if not
$data_map[$game_map.map_id].vertical_loop? #True if looped vertically, false if not
Expand to see the code.




And sorry if this is too much, but one more question......does this script include all of the code for Game_Character, Game_Player, and/or Game_Map?
Okay I know you may be tired of hearing people complain and stuff; but I just had to tell you that there is a major error if you put the anti lag script below yours. I can't really describe it but if you test it you'll see what I mean. Anyways sorry for bothering you, and I hope you can see what I mean. Oh yeah this is one of the best scripts ever. I give you a 10000/10 because its that good. Keep up the good work. Enjoi
@mewsterus: I thought the solution with the Array would be easier.. but Its no problem to add this way, although map scrolling will only be for both directions, horizontal and vertical..
The script doesnt include all the code of those classes, but the most things.. ;)
(+ Many things of Scene_Map, Spriteset_Map, Character_Sprites, etc.)
and most of the methods cannot be aliased, because they are completely rebuilt.

@M.Sam: Dont worry, I already added my own Anti-Lag Script, which works similiar to the normal one (only events on the screen are updated, except they have an empty comment in the first line on the first page)

@Myonosken: the anti lag script is quite good if you have many events on the map, because only the events on the screen are updated ;)

-f0tz!
This is Turning in a must, have you thought in adding a jump part and a ice floor? I think if this is gonna be just for movement that two thing should be in it...
nice idea, but how should I implement this exactly? (or how shall this features get activated while using the script?)

-f0tz!
"Ice floor" can mean where you move on ice and it's really slippery, in some games you move as far as you can until you stop on the ice "like in Golden Sun, also Pokémon with the arrow tile thingies) although in others it's just slippery and makes it hard to move around (Yoshi's Island comes to mind, although that was a platformer)

This can be activated by terrain. Or, there can be one new colour in the passability map that denotes "slippery." May I recommend Cyan?

And, I have no idea what bug this was, but if I kept moving westward in the looping map, after a couple of loops one of the NPC's just stood in one place on the screen and wouldn't go away until I crossed the loop again.


EIDT: Oh, I was wondering, can you make the move speed a bit lower while moving diagonally so that it's more radial movement and less octagonal movement?
Quote:
there can be one new colour in the passability map
I'll do it like that.. thanks :)

the bug with the looping shouldnt have anything to do with the number of times you looped because you are always teleported to the other site of the map, when going across the "border".. I'll see whats wrong there.. maybe it has another reason..

for the move speed problem while walking diagonally I havent found a solution yet.. but Im sure there is a way.. ^^

@all: just give me some ideas how the jumping feature should look like exactly..
I've played many games which include something similar, but they always differed much from each other..

New To Do List:
- Map Scrolling possible by changing the Map Name
- Jump Part
- Ice floor (including two different forms: moving automatically in the faced direction or in the direction of an arrow, etc.. on the ground)
- Bugfix: Event stands still on a looping map
- Slower diagonal movement
- Passability Bug (quite a difficult and stupid thing, so this has main priority.. ^^ its still because of the bridge thingies ^^)


-f0tz!
Sorry to bother you, but my Z-passability map isn't working! I have it set to "Graphics/ZPassability/", but it won't work... And I have it in the correct folder. Should I try moving it?

Edit: Nevermind x.x I found out what I did wrong :)
My opinion in the jump part is that you can make, a var that is the jump distance the user could input how much the chara should jump, then when you press a key maybe (Z) the guy would jump like the character that you made in the DEMO, the litle girl that walks in circles, when she jumps high. I think that tis would be fine, but maybe others have other ideas?

EDIT: You could makethat if the user wants he could use a new character stripe to the jump part... just an idea.
Is it required to have the testmap in your game if you use this? I keep having problems...
EDIT: -.- stupid me... :D Nvm... Now I got a LOT of work to do.
Hey, srry but i am having troubles with the pathfinding...

I used this but....it doesn't work.. it gives an error.

$game_map.events[13].find_event(id_find=10,walk=true,fast=false)

It gives me an erro rin the event...
dunno what to do... the other ones work fine but this one don't, at least for me.

Hope you can solve it

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=624