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

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
<- Nub Need Help
« on: 2008-08-19, 10:21:16 AM »
hey pplz, ok well i set the gravity and everything and react to solid on my player, the solidity and tile category and stuff, so i just want to test how it is so i make a little solid area and place my sprite on top and then i press F5 and i enter and i just fall through it, if you want to see my file i can send it to you, thanks!

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #1 on: 2008-08-19, 10:37:22 AM »
check your player rules: ReactToSolid must come right before MoveByVelocity.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #2 on: 2008-08-19, 10:46:07 AM »
it already is :( and one more thing i come up with an error "Stack Empty" when i try to run my "game"

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #3 on: 2008-08-19, 10:59:33 AM »
"stack empty" occurs always when you have somewhere an "end"-rule too much. no big thing. happens from time to time.  ;)
and move your player a little bit higher on your map.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #4 on: 2008-08-19, 11:30:01 AM »
my sprite character is at the highest point it can be on the map, so hopefully theres other options and you know what to do :P!

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #5 on: 2008-08-19, 11:56:19 AM »
i suppose you have followed the "first steps" help files. maybe you want to read through them another time.
if you have a place to upload your file, maybe i will take a look at it  ;D

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #6 on: 2008-08-19, 12:04:48 PM »
yeah ill try to read the first steps again, i read it a bunch of times already and it hasnt helped but heres the link plz have a look http://rapidshare.com/files/138543475/3rd_Game.sgdk2.html thanks :D i really want to get used to sgdk2

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #7 on: 2008-08-19, 04:54:28 PM »
well the steps didnt work for me again so... i dunno

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: <- Nub Need Help
« Reply #8 on: 2008-08-19, 08:13:40 PM »
Make sure:

The tiles you placed are in the Solid category
The sprite you placed has the Solid category selected as its solidity definition (select the sprite and look at its properties window.  You may need to scroll down to see the solidity dropdown list).
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: <- Nub Need Help
« Reply #9 on: 2008-08-19, 08:22:33 PM »
You have way too many rules between ReactToSolid and MoveByVelocity.  There should be nothing between these rules, otherwise the velocity calculated by ReactToSolid will be overridden by the other rules.  Specifically, you should not have Accelerate and Gravity rules between ReactToSolid and MoveByVelocity.  That will override the "reacted velocity" calculated by ReactToSolid.  (Your "ReactToSolid" rule is not right before MoveByVelocity as you said earlier.)

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #10 on: 2008-08-19, 08:40:17 PM »
ok well my sprite seems to react to solids more but it still does NOT land on a tile it just falls down it like stairs

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #11 on: 2008-08-20, 04:27:42 AM »
okay, this is easy to fix.

#1: move "moveByVelocity" right under "reactToSolid" in both your sprite definitions.
#2: deactivate or delete the two unneccessary rules "End if" and "End climbing" in your Chocobo 1. They are not needed because you have already set a checkmark at "End" at the rule before. you can deactivate with the button right beside the two arrows.
#3: your chocobo on the map has no solidity set. select it (at the layer editor) and look down where a lot of parameters are. there is one called Solidity, click into the empty field beside it and select "Standard".
#4: you need one rule that allows you to control the player with the keyboard. Select the folder "plans" of your layer. create a new plan and in it a new rule. choose "MapPlayerToInputs", set PlayerNumber = 1 and Target = m_ParentLayer.m_Player
#5: look at the moving rules of Chocobo 1. There is "Player.State.Right" instead of "Chocobo1.State.Walk_Right_". This happened because you first defined the rules, and then renamed the sprite and the states. This rules have to be changed then again. change the other moving rules too.

that is supposed to be all by now. the game is running here.

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #12 on: 2008-08-20, 08:55:20 AM »
thanks all of you this is a great community, man i love ya, time to work on the map now so it can look good

blink3

  • Regular
  • **
  • Posts: 23
    • View Profile
Re: <- Nub Need Help
« Reply #13 on: 2008-08-20, 10:28:47 AM »
OMG! i made the game work thanks to you guys, i saved and exited, then i opened it up again later when i wanted to make more stuff and its back to "falling down the stairs" when i load the game, everything is still changed to how it should be running besides the sprite's solidity and when i change that i load the game and my character bursts into the air and stays there, so Tanja could you post your fixed version of my game? ty i kinda feel really stupid cuz im pretty sure this should be easy to fix

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: <- Nub Need Help
« Reply #14 on: 2008-08-20, 10:53:45 AM »
i don