I don't know if this has been asked, sorry if it has. Do you think it would be possible to add priority of maps in pixels instead of in the database? Something like the passibility feature?
Pixelmovement Script: v1.52 released!
Script ArchiveNo sorry - this isnt possible.. I thought about it several times.. But there is no way to do it.. it would slow down the game too much..
The problem with making priorities work in pixels is that it would require a new tilemap class. Passability is handled entirely in Game_Map and Game_Character/Game_Player, while priorities are handled in Spriteset_Map, Sprite_Character, and most importantly, Tilemap.
The difference is, priorities are handled mainly in a hidden class which we can't alter directly. The only way to do what you ask is to use a reverse-engineered Tilemap class, like the minimap uses (except it doesn't have priorities, animated autotiles, or that great of size, so it isn't slow), or like in Mode7 scripts (which were slow for this reason back in MY day).
I'm sure you can get creative in making priorities do whatever you want them to--they're not quite so bad in tiles as the passability is.
The difference is, priorities are handled mainly in a hidden class which we can't alter directly. The only way to do what you ask is to use a reverse-engineered Tilemap class, like the minimap uses (except it doesn't have priorities, animated autotiles, or that great of size, so it isn't slow), or like in Mode7 scripts (which were slow for this reason back in MY day).
I'm sure you can get creative in making priorities do whatever you want them to--they're not quite so bad in tiles as the passability is.
Hey there. I was wondering if there was any way to change the player's move speed to a decimal value. For example, if I were to use the command
on a project without this script would make the player move at a speed between 4 and 5. With the pixel movement, it only moves at a speed of 4, and the walking frames become choppy. Even if you change the value to 4.9, there's no noticeable increase in speed until it's over 5. Is there perhaps a way around this, or am I just doing something wrong? The reason I ask is because I'm trying to make it so my player's agility stat actually alters how fast you can walk (crucial for my ABS). That way, someone who has a poor agility and heavy gear bogging them down might move at 3.7, but someone with light gear and high agility would move at 4.6. Thank you in advance, this script is amazing!
$game_player.move_speed = 4.5
Expand to see the code.
normally it a decimal value should work.. but because there is a bug it doesnt.. but I'll fix that..
Awesome f0tz, you're the best! If you need any help testing out your next version, feel free to PM me. I'd be more than happy to do some extensive testing for you. Keep up the great work. :thumb:
Did you already fix the movement speed thing in your current alpha, or is it yet to be done?
I'm not sure if this is still being worked on, but I did discover another bug. Every time the menu is accessed, the player looks down. This isn't noticeable with menus that take up the entire screen, but for transparent menus or a ring menu for example, it looks funny when the player faces down while the game is paused, then turns back when the game is unpaused.
mewsterus: It isnt fixed yet in the alpha..
Ace of Spades: I will fix this.. (;
Ace of Spades: I will fix this.. (;
Keep working on this, Fotz! This is a dream come true!
f0tz!baerchen wrote:
Here's a list of all move/turn commands you can use:
move_down(steps = 32, turn_enabled = true)
move_up(steps = 32, turn_enabled = true)
move_left(steps = 32, turn_enabled = true)
move_right(steps = 32, turn_enabled = true)
move_lower_left (steps = 32, turn_enabled = true)
move_lower_right(steps = 32, turn_enabled = true)
move_upper_left(steps = 32, turn_enabled = true)
move_upper_right(steps = 32, turn_enabled = true)
move_random(steps = (rand(9) + 8) * 2, turn_enabled = true)
move_toward_event(id, steps = 32)
move_toward_player(steps = 32)
move_away_from_event(id, steps = 32)
move_away_from_player(steps = 32)
move_forward(steps = 32)
move_backward(steps = 32)
move_to_place(x, y)
turn_down
turn_left
turn_right
turn_up
turn_right_or_left_90
turn_lower_left
turn_lower_right
turn_upper_left
turn_upper_right
turn_right_90
turn_left_90
turn_180
turn_random
turn_toward_coords(x, y)
turn_toward_event(id)
turn_toward_player
turn_away_from_player
turn_away_from_event(id)
move_down(steps = 32, turn_enabled = true)
move_up(steps = 32, turn_enabled = true)
move_left(steps = 32, turn_enabled = true)
move_right(steps = 32, turn_enabled = true)
move_lower_left (steps = 32, turn_enabled = true)
move_lower_right(steps = 32, turn_enabled = true)
move_upper_left(steps = 32, turn_enabled = true)
move_upper_right(steps = 32, turn_enabled = true)
move_random(steps = (rand(9) + 8) * 2, turn_enabled = true)
move_toward_event(id, steps = 32)
move_toward_player(steps = 32)
move_away_from_event(id, steps = 32)
move_away_from_player(steps = 32)
move_forward(steps = 32)
move_backward(steps = 32)
move_to_place(x, y)
turn_down
turn_left
turn_right
turn_up
turn_right_or_left_90
turn_lower_left
turn_lower_right
turn_upper_left
turn_upper_right
turn_right_90
turn_left_90
turn_180
turn_random
turn_toward_coords(x, y)
turn_toward_event(id)
turn_toward_player
turn_away_from_player
turn_away_from_event(id)
I tried the Move_toward_player command but it doesn't work, I mean it saying it doesn't work for any event, it's an unidentified method... I didn't wanna try other commands yet since I need this the most. OH this is what I used
$game_map.events
[7].move_toward_player
[7].move_toward_player
Expand to see the code.
You have to write it without line break. Instead of $game_map.events[7] you may use "get_character[7].move_toward_player".
It's kinda hard NOT to get it without the linebreak, and now I just get an argument error... I mean I try this
and
but they both give the same error.
http://i33.tinypic.com/2i8zngk.png[/img]
get_character[7].move_toward_player
(0)
(0)
Expand to see the code.
get_character[7].move_toward_player
Expand to see the code.
http://i33.tinypic.com/2i8zngk.png[/img]
Sorry, my mistake. It shoulb be like this:
That's it :)
get_character(7).move_toward_player
Expand to see the code.
That's it :)
or you do it like that:
event = $game_map.events[7]
event.move_toward_player
(;
event = $game_map.events[7]
event.move_toward_player
(;
Thanks, hope it works cause I'm at work right now. If it works thank you!
2 hrs to go^^
Edit:
It works but the events direction"sprite" changes like crazy, if I'm like left/right it'll switch between left/right sprites even if it's moving left.
Any idea's?
2 hrs to go^^
Edit:
It works but the events direction"sprite" changes like crazy, if I'm like left/right it'll switch between left/right sprites even if it's moving left.
Any idea's?
This is a bug, but f0tz! alredy fixed this in the new version. Hopefully he'll publish it very soon ;)
Omg you've been making this scipt for 2 years, I call that spirit!
Thanks ^^ other people probably would call that crazy.. :D
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
arev wrote:
This is a bug, but f0tz! alredy fixed this in the new version. Hopefully he'll publish it very soon ;)
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
Ok sorry for doule posting now but, f0tz!bearchen I need your help. I downloaded your script and made a test project. So when I put in all the files that were in the rar "pixelmovement" that I downloaded on your homepage and when I go into the game I can't move. I try to move with the arrow keys but it just won't move. Please help me, your script is so awesome! EDIT: I just noticed I can't use the arrow keys at all in the game. Not even in the menu, but ofc I can use it over here. Otherwise I wouldn't be able to type all this, would I? Please help
If you want I can make a vid to show you my prob.
If you want I can make a vid to show you my prob.
Make sure all the script are in the same order that they were before.
Well, you know that you can start the game up right away without even extracting it, that doesn't work either :(
EDIT: Ok this is weird, it works on my dads computer but not on my moms :O
EDIT: Ok this is weird, it works on my dads computer but not on my moms :O
f0tz!baerchen wrote:
Thanks ^^ other people probably would call that crazy.. :D
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
arev wrote:
This is a bug, but f0tz! alredy fixed this in the new version. Hopefully he'll publish it very soon ;)
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
I can't wait for it, I actually think you beat Game Maker in movement with this script... "for rpgs anyway" Anyways I was wondering like most GBA games that have pixel movement there is like a key movement.
For example.
If I'm moving right and I press the left key while going right the hero will move left.
If I'm moving down and I press the up key while going down the hero will move up.
Any ideas of figuring how to add that in your movement script? Cause this movement script owns!
f0tz!baerchen wrote:
Thanks ^^ other people probably would call that crazy.. :D
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
arev wrote:
This is a bug, but f0tz! alredy fixed this in the new version. Hopefully he'll publish it very soon ;)
Exactly.. :)
The new version is near finished.. I only need to find time to update the ReadMe..
*waits with eager anticipation*
Also I was wondering if perhaps you could implement a caterpillar effect like Zeriab's new script, where the events that follow you can be stopped and used as regular events, and then resume following you via script. If somehow that could be added or considered for a future version, that'd be awesome :D
MysticTrunks wrote:
I can't wait for it, I actually think you beat Game Maker in movement with this script... "for rpgs anyway" Anyways I was wondering like most GBA games that have pixel movement there is like a key movement.
For example.
If I'm moving right and I press the left key while going right the hero will move left.
If I'm moving down and I press the up key while going down the hero will move up.
Any ideas of figuring how to add that in your movement script? Cause this movement script owns!
For example.
If I'm moving right and I press the left key while going right the hero will move left.
If I'm moving down and I press the up key while going down the hero will move up.
Any ideas of figuring how to add that in your movement script? Cause this movement script owns!
This actually has nothing to do with pixelmovement. One could theoretically make a work-around into the script, but such a feature is dictated by input processing. As it is, when playing with a computer keyboard, the hardware often has a set key press heirarchy, such that if you press the up and down key the down key prevails, or whatever it is. This limitation exists in older keyboards only, I believe.
Hi.. finally I could finish v1.6. of the Pixelmovement.. :)
You can find it on my homepage in the scripts section like always..^^
Have fun..
edit: seems there was a problem while updating.. I reuploaded the script now..
You can find it on my homepage in the scripts section like always..^^
Have fun..
edit: seems there was a problem while updating.. I reuploaded the script now..
YES!
Thanks, fotz!
Thanks, fotz!
\m/
Don't forget to update the first post :)
Don't forget to update the first post :)
Thank you, f0tz!baerchen! I was cheking this topic almost every second day, and now i'm very happy because of new release of yor script. And this feature "Step by Step" i was asking for - implemented! I wish you goodness and light uppon your bright head.
p.s. i wonder why the making of new Tables and Waypoints took so long time (even on hi-end computer)...
p.s. i wonder why the making of new Tables and Waypoints took so long time (even on hi-end computer)...
I can tell you why.. :D
To create a table the script has to check every single pixel of the collision map (for a 20x15 there are 640x480=307200 Px to check...)
Now imagine how many pixel a huge map has and how long it will take to check many huge maps.. (;
To create a table the script has to check every single pixel of the collision map (for a 20x15 there are 640x480=307200 Px to check...)
Now imagine how many pixel a huge map has and how long it will take to check many huge maps.. (;
Original thread: https://www.hbgames.org/forums/viewtopic.php?t=624