Author Topic: Weather Effect  (Read 5819 times)

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Weather Effect
« on: 2008-01-11, 08:07:04 PM »
Oh, um I kinda saw the weather effect template for the SGDK 2, and don't judge me for being retro and out of date, but can you please tell me how to do something like tht for 1.4.6.?

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: Weather Effect
« Reply #1 on: 2008-01-12, 03:04:20 AM »
i would say you must go really heavy into scripting if you want the same thing.
but i have made a sort of snowstorm for my own game (in sgdk2). the main thing is to paint animated tiles (falling raindrops or snowflakes). to put these tiles into your game, it doesn't need so much script (i guess).
 i am not fit in version 1, but i'm sure someone will help you in this case.
« Last Edit: 2008-01-12, 03:07:33 AM by Morgengrauen »

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Re: Weather Effect
« Reply #2 on: 2008-01-12, 03:01:30 PM »
And um, exactly HOWWW do I do that?!?!?! And howwww does it work?
(IE: Step by step, you probly know more at script than I)

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2745
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Weather Effect
« Reply #3 on: 2008-01-12, 05:17:33 PM »
There are a few features of the weather effect from SGDK2 that simple can't be done in version 1: Scaling graphics.   The weather sample stretches/scales elements of the weather to large and small sizes.  You could make copies of the graphics that are different sizes, but that would require a new tileset for each size, which will just get to be a pain.  2: translucent graphics.  Some of the pieces of the weather are partially transparent.  Version 1 does not support this translucency.  3: Tinting.  Version 2 allows you to tint graphics to a certain color without re-creating them.  This might be important for weather effects.

Perhaps the simplest way to create a weather effect in version 1, though, is with an animated tile that fills a non-scrolling layer.  Then you don't even need to script.  But it won't (can't really) look nearly as good as the SGDK2 effect.

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Re: Weather Effect
« Reply #4 on: 2008-01-12, 09:01:55 PM »
Thanks man. Still, the SGDK 2 looks like a lot to swallow- VERY CONFUSING TO A RETARDED NOVICE WITH NO VB OR C++ KNOWLEDGE AS I.  :baby:

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Weather Effect
« Reply #5 on: 2008-01-13, 11:32:52 AM »
SGDK2 uses C#, which is not VB or C++.  It's based off of Java more than either of those, really.  Java is a nice language with a few quirks, which C# tries to deal with, and succeeds in some places quite nicely.  SGDK2 should eventually be easier and more useful than SGDK1.x.  Already it is much better at creating games, and with the template system, it has much of the functionality from 1.x.

It's still a bit hard to get used to, as version 1 was, but I don't think it's much to swallow if you just create a game starting out without scripting or writing too much of your own sprite actions.
Edward Dassmesser

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Re: Weather Effect
« Reply #6 on: 2008-01-13, 04:46:34 PM »
That, I know, but how do you use/make special functions and why do you need source code to make music when 1.4.6 can make music without sourcecode- just by easily dragging and dropping musicand video files?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2745
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Weather Effect
« Reply #7 on: 2008-01-14, 07:21:07 AM »
That, I know, but how do you use/make special functions

Plans are the new special functions.  A plan is kind of a combination of (from version 1 terminology) a path and a special function combined.  You can use a plan that contains two points (defining a rectangle on the map) to trigger various actions based on whether a sprite (player sprite or any other sprite) is within or touching that rectangle.  The intention is that anything you could do with a special function in version 1 can be done with a plan with just 1 (or very few) rules in SGDK2... it's supposed to be just as easy, but more flexible.  The intention in SGDK2 was to allow you do do pretty much everything you could do in version 1 almost as easily, but also provide more flexibility so that, if you get a little more sophisticated, you can do more complicated things too (that could not be done as easily in version 1).

So don't let the power of SGDK2 overwhelm you.  It's still possible to do almost everything (if not everything) that you could do in version 1 almost as easily.  You'll notice that all the most useful basic sprite types have importable templates in SGDK2 so you can create the same kinds of sprites in SGDK2 that you created in version 1 without even touching the rules in many cases, let alone writing any code.  And certainly you can create very complex sprites without having to know any C# code.  Just select the rules and parameters from dropdown lists ... should be almost as easy as version 1.

The great benefit (and I think the benefit is more than worth the cost of the slightly increased complexity) is the improved flexibility you end up with.  For example, I mentioned Plans above.  You can still create a special function, but now you have control over whether to trigger an action based on the player sprite or any other sprite, which you couldn't do in version 1.  And you also have control over whether the sprite is just touching the rectangle to trigger the action (IsSpriteTouching) as was the behavior with version 1, or whether a particular point in the sprite is actually within (IsSpriteWithin) the rectangle to trigger the action (which wasn't possible in version 1).  This is just the simplest of examples of flexibility.  The power of SGDK2 goes far beyond that, of course.

and why do you need source code to make music when 1.4.6 can make music without sourcecode- just by easily dragging and dropping musicand video files?
This allows you to choose any music library you want instead of having to rely on the suggested music library provided with SGDK2, and it also allows you a great deal more control over the behavior of the sounds and how various parts of the game interact with them (notice the spectrum analyzer built into the background of the sample game).  I tried to keep it relatively simple by minimizing the amount of code required and providing a tutorial, but there is a bit of a trade-off.  I have talked with a few users about the process of creating sounds.  I asked a couple of them about creating a wizard and writing a tutorial, and they seemed to think that writing a tutorial was good enough.  But certainly this area could be enhanced in the future, providing a wizard to import sounds for you to make it even easier.

Just keep in mind that this is only the first release, and the purpose of the first release is to get the basic set of functionality completely tested, usable and available for everyone to start using, not necessarily to implement every feature that might make this the most usable.  I don't want to spend a lot of effort enhancing parts of the program that people don't care about, so I want to get the basic set of features out first, and then build on that.  I've been listening to suggestions and improving things all along, so don't feel like your comments are going unheard (I'm trying to implement OpenGL support now so that SGDK2 can be more portable across platforms; maybe even target game systems someday).  And also keep in mind that trying to understand all of SGDK2 at once can be overwhelming, and you don't have to understand all of its power to use it.  You don't have to know C# to be able to create a simple game (as the tutorial demonstrates).  You don't really even have to know how to edit rules to create a simple game, if the templates are good enough for you (the tutorial went into extra detail to help users understand how sprite behaviors are constructed, but most of them can just be imported).

You're right, that SGDK2 is somewhat more complex than version 1.  But if you can avoid being overwhelmed by it, I think you could get used to it.  I think a number of users have adapted to the new philosophy pretty well.  I'll let them speak for themselves.  Anybody else care to comment on their initial impressions about SGDK2 and how they adapted to it and how initial impressions/expectations were met or not met?
« Last Edit: 2008-01-14, 07:24:10 AM by bluemonkmn »

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: Weather Effect
« Reply #8 on: 2008-01-14, 09:33:47 AM »
sgdk2 is indeed overwhelming. i can't claim really using it, just made the quickstart tut and this basic game three times. but i was enthralled how easy it all was. then i discovered version 2. it served my needs much better, and was it only to the reason one can use pngs with unlimited color palettes and transparency. (real transparancy, not just one single color for it). it took quite a while till i was a little used to it. i asked the same questions as you, pizzaman. why does everything has to be so complicated? what have i to do to achieve these easy things from version 1?
but in the end, sgdk2 is the much better, much mightier than v1. really. and you doesn't have to be 1337 to adapt the scripts to your own needings.

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Re: Weather Effect
« Reply #9 on: 2008-01-14, 04:37:37 PM »
Thanks guys, I think I'll keep all of this in mind when I try it next time. I usually just build sprites off of the stickman sprite, but can you make an IDK for making a fighting sprite or at least a template? thanks...! 8)