Scrolling Game Development Kit Forum
Welcome, Guest. Please login or register.
2010-09-09, 05:43:03 PM

Login with username, password and session length
Search:     Advanced search
8920 Posts in 1007 Topics by 168 Members
Latest Member: mogzdogz
* Home Help Search Login Register
+  Scrolling Game Development Kit Forum
|-+  SGDK Version 2
| |-+  Help, Errors, FAQ
| | |-+  lava, water and spikes help
« previous next »
Pages: [1] Print
Author Topic: lava, water and spikes help  (Read 152 times)
tspoon12
Visitor
*
Posts: 3


View Profile Email
« on: 2010-03-30, 01:04:35 PM »

Im unsure of how to make traps. I've made it on graphic sheets and tried different ways of making it send you to the start of the level. Couldn't get it to work but felt it was close. Any ways I can do this.......is anymore information needed, im new to this.
Logged
SmartBoy16
Contributor
Fanatic
**
Posts: 554


Current Project: RANAT: BtT

joelag_2009@hotmail.com
View Profile WWW Email
« Reply #1 on: 2010-03-30, 03:21:25 PM »

could you post the .sgdk2 file? you can save attachments to posts under the advanced options or you can upload it to an online folder such as box.net


there are a few ways of doing this depending on how you set up your game. the common way is:

1. Make a 2 point path at the location of the pit to create a rectangle.
2. Make a 1 point path at the beginning where you want the player to return to.
You can use Shift+T to make the path snap to tile locations

3. Create these rules on the pit path in the rules editor:
     a. If IsSpriteWithin
          Sprite: (whatever the name of your player sprite is)
          RelativePosition: CenterMiddle
     b. Do TransportToPlan
          Sprite: (whatever the name of your player sprite is)
          Path: (whatever the name of your beginning path is)
          Alignment: CenterMiddle
          Make sure "EndIf/EndWhile" is checked

if you need any more help, let us know Wink

Logged

SmartBoy16


The RANAT Foundation: Before the Truth http://www.box.net/RANAT-BtT
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!