Author Topic: Tutorial  (Read 5674 times)

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Tutorial
« on: 2008-03-03, 05:40:47 PM »
Hello everyone.

Just started re-using SGDK (very impressed with BenMarty for the latest version) and have been having trouble getting back in "the groove". I tried to find an included tutorial similar to the SGDK1 tut, but couldn't. I found this, however and have been going at it, but step "10, d, i" states:

Select "Do" from the first dropdown and "CalculateRotatedState" from the second dropdown.

But there doesn't seem to actually be a CalculatedRotateState available.

It isn't that big of a deal, since my project will use left-right states only, but I thought I'd ought to bring this up for future users who might get stuck there.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Tutorial
« Reply #1 on: 2008-03-03, 06:01:01 PM »
Have you followed the tutorial exactly?  The contents of the list may depend on other things (including whether you've selected "Do" in the first box).  If there are errors listed at the bottom of the window, then the list will probably be almost empty.

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #2 on: 2008-03-04, 04:30:03 AM »
I tried again from scratch, but ended up at the same place. I think it has something to do with the way they all seem to belong to the first rule. I clicked 'new' a few more times after this, but they all combined. In a fresh project with nothing else in it, they all started seperate, but joined together.


bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Tutorial
« Reply #3 on: 2008-03-04, 07:44:57 AM »
What version are you using?

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #4 on: 2008-03-04, 04:04:20 PM »
Scrolling Game Development Kit 2.0.0 - same one available from the site.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Tutorial
« Reply #5 on: 2008-03-04, 06:30:05 PM »
But it's not the final release version -- check the About dialog... something must be there after the 2.0.0.  I think you need to get the final release version.  It's not the same one available from the web site.

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #6 on: 2008-03-04, 07:38:58 PM »
Turns out when I installed the latest version, it didn't override the previous version. So a complete uninstall followed by a new re-install updated the program

But now, following the same tutorial from above, on step "13, b"
it says:

Select the star tile in the bottom pane and notice that its frameset index is #2 in the status bar.

but its not in the bottom pane. its in the top. Then "13, c" says:

In order to replace this tile with one that has a background, we'll override tile number 2: Select "New Tile" from the Tileset menu or the toolbar next to the "Mapped Tiles" dropdown box.

But there is no tileset menu. There is one called Tiles, but it doesn't have a New Tile option. Not only that, but there is no toolbar or Mapped Tiles dropdown bar. I'm afraid this step has me more than well and truly stumped.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Tutorial
« Reply #7 on: 2008-03-04, 09:14:23 PM »
Ya gotta read carefully ;)... did it occur to you that if the screen looks totally different, you might be on the wrong screen?  :educated:  It seems like you clicked on a tile category instead of a tileset.

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #8 on: 2008-03-05, 06:36:54 AM »
Yep, that was the problem. I had all of the... branches extended (?)

Now this is just a general help topic:

I have a map which is 75 tiles wide and 380 tiles tall (the tiles are 32x32 like the tutorial) but I can't keep the player on screen. Especially during vertical scrolls. I start at the top of the map and drop, it takes a while but eventually the screen has an epileptic fit (but scrolls) but its all jerky and horrible, not to mention the player is some several kilometres below vision. The horizontal scrolling is fine, but the vertical scrolling has me beyond stumped.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Tutorial
« Reply #9 on: 2008-03-05, 07:20:36 AM »
1) You have to make sure that the entire area your scrolling through has an opaque background, otherwise there's nothing new to draw, and it will just flip through buffers of old graphics.
2) Make sure your map's ScrollableSize property is set properly.  You might want to use the wizard in the map manager dialog.
3) Make sure your scroll margins aren't too big.  Set them all to 32 if you're not sure, just to see if it makes a difference.

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #10 on: 2008-03-06, 12:21:30 AM »
For some reason everything I tried refused to co-operate. But it worked just fine when I loaded it up this morning.

OK, here's where we're at now... I want to make a platform game, like SHFL. But I can't figure out how to make the character like Mario. Its probably obvious, but I'm stumped, again! I've tried everything I can think of.

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
Re: Tutorial
« Reply #11 on: 2008-03-06, 02:54:05 AM »
While I'm here (or, actually, up there - I can't see an edit button) I might aswell ask for everything I'm thinking of. The character will go left and right and hit things. When he's hitting, he will be deadly, but will get hurt when normal. While I'm here I might want to have him blink for a minute and be invincible when hurt, for a brief moment.

Yeah, its a bit much, but I'm on a tight schedule and it was years since I last used SGDK.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Tutorial
« Reply #12 on: 2008-03-06, 02:15:00 PM »
One of the downloads for SGDK2 in the Library at Sourceforge (Link) is the "Sample Projects" which contains one called "TVSGDK2.sgdk2" or something like that.  It shows how to have a sprite flash and be invincible for a short time after being hit.
Edward Dassmesser