Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Custom Collisions
Rukiri
post Nov 8 2012, 08:46 PM
Post #1


emerge -avt awesome! Wait... it brings me.... HERE?!
Group Icon

Group: Revolutionary
Posts: 1,722
Type: Scripter
RM Skill: Advanced




I've basically rewritten Seiken Densetsu 3 in C++ with SFML, however I'm porting it to RMXP and RMVX Ace, everything actually was pretty easy to transfer over.. until collisions are involved. Basically, when you attack the enemy he moves either diagonally or straight depending on your X/Y axis, with Zelda your enemy would move with your sword.

degree = radtodeg(arctan2(vec1.y - vec2.y, vec2.x - vec1.x));

Basically what this does is get the degree to move the enemy backwards, it's basic trig/vector math.

Vect1 = Hero
Vect2 = Enemy AI

However I've seen no radtodeg funtion in Ruby so I doubt it's in RGSS, I don't use ruby other than Ruby on rails, C++ for games.

Basically in ruby, I just want to make a script call in even say move_object(hero,object) where object is the event in question.

I do want to see a perfect Abs in RPG Maker, thus far I've seen good and decent but no perfect abs.


__________________________
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
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Rukiri   Custom Collisions   Nov 8 2012, 08:46 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 02:35 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker