Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - dotajames

Pages: [1]
1
Technical forum / Re: Images distort only in WME
« on: July 22, 2008, 08:24:56 PM »
Nothing special about it. Just usual jpg (24bit). I cant get screencap of this screen in wme but it seems that 0,0,0 color is getting transparent for some reason

Are you sure you don't have 0,0,0 set as the transparent colour?   (Check in Frame Properties in SpriteEdit)

2
Community bulletin board / Re: WME BOOK is online
« on: July 21, 2008, 05:33:19 PM »
This is excellent!  I was worried that there weren't enough examples/documentation for Wintermute but then I found this :)

Tiny errors I noticed in Chapter 2:

  • Quote
    file test1.script
      global a = 10;
      Game.Msg(a); //prints 10

    file test1.script
       global a = a + 1; 
       Game.Msg(a); //prints 11, because the variable is valid for the whole game.

    I'm pretty sure you meant the second one to say test2.script
  • There are two Syntax Rule no.4's and two no.5's
  • At the end of 2.5 Includes, there is a seemingly unrelated snippet of code

And also I had a couple of questions:

  • Quote
    BUG: Don’t use loops inside of the case branches. They don’t work. If you need, write a function (explained later) which will contain the loop. This workaround works.

    So that's a bug with the Wintermute engine?  What about using }else if{ instead of a switch, wouldn't that be quicker than writing a function?
  • Quote
    Never initialize your variables in the include files. They will get reinitialized with every inclusion of your script.

    Is it a good idea to put your global variables in an include file (e.g. "global myVar;") so that you can get/set the value without having to remembering to write global before it the first time you reference it in each script?

Thanks!

3
Hi all,

I just switched over from SLUDGE to Wintermute, and I must say I'm extremely impressed by it so far :) Everything I could have asked for seems to be a feature already!

The website for the game I'm currently working on is http://www.dotagame.com

Pages: [1]

Page created in 0.074 seconds with 24 queries.