Author Topic: SGDK2 Release Candidate 1  (Read 11762 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: SGDK2 Release Candidate 1
« Reply #15 on: 2007-12-17, 01:47:32 PM »
It would be simple enough to do this by creating an "If" rule that is suspended and give it whatever name you want as description.
Edward Dassmesser

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: SGDK2 Release Candidate 1
« Reply #16 on: 2007-12-17, 02:45:08 PM »
yes. but i don't like to write senseless functions, and it would be user/newbie-friendly.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: SGDK2 Release Candidate 1
« Reply #17 on: 2007-12-17, 05:46:26 PM »
Why don't you like "senseless functions"?  Either way, it must take a row in the tree view, and either way, it will not affect the generated code, and either way it will show whatever comment you want for the block.  I think you could even put "CommentBlock" (or whatever you want) as the name of the rule function to call to indicate that this rule is just a block header.

But I should also point out, the rule system is intended to be a very high level designer that chooses which behaviors a sprite or plan will use, not define every detail.  So if you are getting too many rules to manage, I think it's an indication that you should move the code into a custom object or add some code to SpriteBase.cs to simplify the rule definitions for the sprite.  My original thought was that a sprite could maybe even have just a single rule like this:
FollowFloor
Then all the details of that behavior would be in code.  But I decided to not be quite so high-level because you should be able to customize it a little.  Is there any way you can simplify the rules that define your sprite's behavior by moving more into the source code?  (You remember that you can just copy the code generated by compiling the project into a function, right?)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: SGDK2 Release Candidate 1
« Reply #18 on: 2007-12-18, 03:15:59 AM »
i remember this.  ;D maybe i will try it some day (i am little bit scared of it and have only time for the most important things now... time is running out for me)