Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Learning some tricks thanks to SpankTheHero_v0.30  (Read 4108 times)

0 Members and 1 Guest are viewing this topic.

fullspyral

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
Learning some tricks thanks to SpankTheHero_v0.30
« on: July 07, 2013, 10:18:06 PM »

Hello, I discovered SpankTheHero_v0.30 the technical demo here in this forum, and I have been testing and learning all kind of new things that I didn´t know until now. Well the fact is that I´m trying to understand something a little weird for me.
In the knight script for example, there is this event handler:

Quote
on "slash_right_success"
{if(actor.X<monster.X && monster.X<actor.X+170 && monster.Y<actor.Y+20 && monster.Y>actor.Y-20 && monster_life>0)
  {
   monster_life = monster_life - 1;
   monster.ApplyEvent("monster_hurt");
  }
}

This are the coordinates between the knight and the monster, the monster losing a life, and the applied monster_hurt event from the monster.script.

And on the other hand there are the script called attack_key.inc that indicates the sprites used, and the game.script where the keys are set.

The question is, the latter two are connected with the knight script?
Because If I change the name of the event, the animation appears but the event doesn´t work and the knight don´t hurt the monster.

And I don´t find other "slash_right" in all the scripts of the demo!  :(

Well thank you very much for the help, and sorry for my horrible english!!  ;)
Logged

fullspyral

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: Learning some tricks thanks to SpankTheHero_v0.30
« Reply #1 on: July 08, 2013, 08:51:43 AM »

Well thanks to one partner of this forum, I already know the solution. The name of the event "slash_right" for example, is in the sprite of the animation. If you open the sprite in spriteedit window, you can find in frame properties the "event" box.
bye!!  :)
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Learning some tricks thanks to SpankTheHero_v0.30
« Reply #2 on: July 08, 2013, 09:19:03 AM »

One little program that i found very useful: http://astrogrep.sourceforge.net/

It allow you to search a string inside every file in a folder (and sub-folder obliviously :) ) and tell you the file that contain that string. In that case you could have found all the file with "slash_right" in some seconds ;)
Logged

dongo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Learning some tricks thanks to SpankTheHero_v0.30
« Reply #3 on: July 08, 2013, 12:29:30 PM »

One little program that i found very useful: http://astrogrep.sourceforge.net/

It allow you to search a string inside every file in a folder (and sub-folder obliviously :) ) and tell you the file that contain that string. In that case you could have found all the file with "slash_right" in some seconds ;)

you can use notepad++ too its very simple and its have a lot of tools.... ;)
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Learning some tricks thanks to SpankTheHero_v0.30
« Reply #4 on: July 08, 2013, 03:17:13 PM »

Already tried some times ago and honestly i don't like it too much ;)
Logged
 

Page created in 0.049 seconds with 23 queries.