Author Topic: <- Nub Need Help  (Read 23179 times)

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #15 on: 2008-08-20, 10:59:40 AM »
i dont really understand it either, but thanks anyways

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #16 on: 2008-08-20, 11:30:43 AM »
do you mind if i ask 1 more thing? ok well how do you make it so you die if say Example ->   ____     ____  say there is 2 pieces of land and a gap between them, how would you make it so that when they fall through they would Die like in      |   |              Super Mario? Also, nvm i ask you too much questions
                                                                                                                                      |    |

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #17 on: 2008-08-20, 11:41:38 AM »
you could make an extra tile, perhaps a transparent one, that you put into the gaps. this tile would be in a tile category named "deathly" or so, and then you could make rules that ask if the player touches the category.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #18 on: 2008-08-20, 12:03:10 PM »
so would i make the death gap "tile category : touchable" or would i make it a sprite? if it was a tile category would i have to edit the rules in the map?

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #19 on: 2008-08-20, 12:29:29 PM »
they need their own category, that would be the simpliest. the sprite needs a rule "touchTiles".

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #20 on: 2008-08-20, 12:49:39 PM »
im sorry but i dont understand "they need their own category and needs a sprite rule?

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #21 on: 2008-08-21, 09:20:13 AM »
i believe this must be described somewhere in a tut.
you can make a tile category for the deadly tile which is at the bottom of the gaps. your player needs a rule (do TouchTiles). this checks wether the player touches the deadly tiles. of course you need some more rules to tell what shall happen than.
perhaps you should look at sample game. the players use touchTiles to collect the fruits.

you could of course achieve the same with a sprite, this would also be used to make enemies .

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #22 on: 2008-08-21, 10:58:31 AM »
yeah, do u know a rule to restart level? cuz i've been looking and couldnt find one

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #23 on: 2008-08-21, 11:42:37 AM »
this is a very tricky thing (to me). maybe some more experienced coder could help here.  i would be very glad if a good, clean restart-option would be available in sgdk2 some time.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #24 on: 2008-08-21, 02:26:00 PM »
yeah i sent a PM to blue hopefully he'll get it and pm me!

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #25 on: 2008-08-21, 02:34:27 PM »
i believe he reads your posts here already. and from a public answer more people would benefit.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #26 on: 2008-08-21, 02:38:47 PM »
ok, well i hope he does that then :P

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: <- Nub Need Help
« Reply #27 on: 2008-08-21, 03:31:41 PM »
don't you just use a changemap rule, and then switch to the map your already on? i thought that would reset it.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #28 on: 2008-08-21, 03:33:03 PM »
oh maybe ill try that

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #29 on: 2008-08-21, 05:46:18 PM »
ok i set the transparent tile into Tile Category: Touchable,
In the PLayer rules it looks like:
Rule1 - IF IsOnTile
TileCategoryName.Touchable
RelativePosition.CenterMiddle

Rule 2- DO SwitchtoMap
typeof(Pococo_Map)
false

is that good? also when i set my gap my sprite doesnt fall into the gap if it looks like this ___    ___ The sprite will just move over it like it was a
                                                                                                                              |   |      Solid.