Save-Point
Jumping Enemies? - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: Jumping Enemies? (/thread-5361.html)



Jumping Enemies? - Bounty Hunter Lani - 01-17-2015

I've noticed that, even though it's included in the script, JUMPING isn't explained very well in the CTB by Charlie Fleed + Animated Battlers by DerVVulfman demo. Confused

I couldn't find any information on it in the configurations, and after lots of searching, I couldn't figure out how to make the ENEMIES jump.
The ID of weapons is simple, since there's already an example included for those who need to do that, but what do the numbers mean for the enemy one? There's a random #nil there, so it gets confusing... Sad
And what is the second number in the Jumping for Weapons, anyway? Is that how high they jump? Confused

I started this thread so those who don't know how to use the Jumping system can get the information they need! Blushing + Cheery

So, explanations? Happy


RE: Jumping Enemies? - DerVVulfman - 01-17-2015

Within Charlie's Demo, there is a Minkoff.rar file. This compressed file contains a chm/help file for Animated Battlers. HOWERVER, I NEGLECTED TO PUT JUMPING EFFECTS IN THERE????? EEP!!!

Let's look at Charlie's config for the Jumping system
Code:
JUMPING_ENEMY         = {3 => 12} #nil         # Weapon IDs for jumping rush attacks
  JUMPING_WEAPONS       = {1 => 4}   # Weapon IDs for jumping rush attacks
  JUMPING_SKILLS        = {61 => 24}  # Skill IDs for jumping rush skills
  JUMPING_ITEMS         = nil         # Item IDs for jumping rush item usage

EACH array goes by the syntax of:
Code:
ARRAY = { id => height, id => height, ....  id => height}
In that, the ID is the id of the object in the database and the height is the height in stepping increments. The higher the increments, the higher the attacker jumps.

OR... you can just make it "ARRAY = nil' if you don't want any jumping effects for a particular system. You can see that in use with the JUMPING_ITEMS array.

In Charlie's demo, the JUMPING_ENEMIES has enemy #3 in the database (his Sahagin) set to jump 12 increments. That may be a bit high and extreme. I wouldn't want to jump up that high. Can cause some problems. According to the JUMPING_WEAPONS array, anyone using weapon #1 (Bronze Sword) would be jumping up 4 increments. And OMG... Anyone using Skill #61 (Leg Sweep) is jumping 24 increments high? Wow.

Oh, about the #nil in the JUMPING ENEMIES.... Anything after a # symbol is a comment and ignored on that line.


RE: Jumping Enemies? - Bounty Hunter Lani - 01-17-2015

Exactly what was asked for, thanks! Laughing + Tongue sticking out

Super useful system, super useful explanation, super useful site! Happy

Guess it's time to close the Thread, huh? Winking

Hope this helped people! Grinning