Group: Member
Posts: 3
Type: Scripter
RM Skill: Masterful
Arcthunder Pixel Movement by Khas Arcthunder
Intro: Pixel Movement is a script that converts the movement of all game characters by Tiles to Pixels. The Arcthunder Pixel Movement was developed to enhance the integration between the characters and the map, improving the collision either.
Features: - Pixel steps - Plug and Play - Advanced collision system - Lag-free - Work with RMVX counters - Loading system (Khas Physics) - Changes the movement of the player, the map events and the vehicles - You may set an unique collision for each event - Much moreā¦
Download: Download .txt attached or... You can download the demo, the editor and the readme file from mediafire.com
How does the collision work? Consider the default settings: the tiles are divided by 4. To understand how the system works, you must know that there are a new coordinates system: the (PX, PY) system. The PX coordinate is 4 times bigger than the default X, and so the PY does. Example: 5 PX = 1.25 X 8 PY = 2 Y 31 PX = 7.75 X Now, considering an simple event, there are two cases of collision:
- The "priority type" of the event is 1 or 3 (the player can pass through the event): The trigger will be activated when the following conditions occur: a. The difference between the player's PX and the event's PX is equal or smaller than the event's collision constant? b. The difference between the player's PY and the event's PY is equal or smaller than the event's collision constant? If this two conditions happen, the event will be triggered! In practical instances: [collision 0] will make the collision happen when the player is exactly above the event. [collision 4] will make the collision happen as the default system of the RMVX: 1 tile next to the event. Conclusions: Inserting values between 0 and 4 on the [collision X] command will make the collision happen between 0 and 1 tile.
- The "priority type" of the event is 2 (the player can not pass through the event): The event acts as a obstacle to the player. The player can not pass when the following conditions occur: a. The difference between the player's PX and the event's PX is equal or smaller than the event's collision constant? b. The difference between the player's PY and the event's PY is equal or smaller than the event's collision constant? Note that the conditions are the same, but here the event acts as a obstacle, so the player can not pass through the event. In practical instances: [collision 0] means that the player can walk around the event, but the player can't step exactly above the event! [collision 1] defines a little range of collision, the player can't pass through the middle of the event [collision 3] defines a good collision value for characters [collision 4] means that the player can not walk through any part of the event! Conclusions: In this case, [collision X] defines the size of the event! Hint: for big events, you may set values bigger than 4. You can use it with big trees for example.
Well, that's it. It's a little complicated, you may test different values to understand how it works. I tried to explain in the best way I can. Sorry for any mistake, I'm brazilian as you know xD
Arcthunder Physics Editor: Now you can edit the "Khas Physics.rgss2a" file. The instructions and the editor can be downloaded at mediafire.com Compare the screenshot and the video bellow:
The editor is a little complex, it's only recommended for advanced users. If you are using simple tilesets (square passages), you may not use the editor.
Credits: By Khas Arcthunder, please read the Terms of Use.
This post has been edited by Khas: Jul 26 2011, 08:59 AM
Group: Local Mod
Posts: 1,633
Type: Artist
RM Skill: Skilled
Rev Points: 5
Works nicely. When I try your demo, however, I get an error that says "RGSS200E.dll could not be found". Strange...
__________________________
The userbar links to the right thread this time. :P
Click here for other crap
QUOTE (gamezerstudios @ Jan 18 2010, 03:29 AM)
i don't like blogs last time i got one my desktop blew up!
ROFL!!
Dragons and Eggs! Please click :3
Weird Dragon is weird.Pretty Dragon is pretty. Midjet Dragon is a midget.Cool Dragon is cool. Awesome Dragon is AWESOMEOkay Dragon is... Meh UGLY DRAGON IS UGLY! >_<... Ok seriously WTF!? Another Pretty DragonPrettier Dragon WOAH BADASS!Woah... Same as before. >_> Ooh it's a godly looking dragon!Ooh, it's a dragon prettier than the other two! ... Okay seriously what the hell is this thing?
Dunno if rpg maker will make it work though, but this is what I've used in C++, Game Maker, and lua.
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5