Need help with any SMBX game-related issues? Ask your questions here.
Moderator: Userbase Moderators
|
|
|
|
-
Rai
- Shy Guy

- Posts: 9
- Joined: Thu Aug 20, 2015 6:36 pm
Postby Rai » Sun Aug 30, 2015 3:02 am
The title pretty much says everything. What I want to do is have the player hit a large item block, only for when he hits the block the block will instantly fall and crush the player, killing him.
Another thing I wanted to do was have a tetris-like game where the player must climb to the top of the screen using the blocks that fall while also trying not to be squished.
|
|
|
|
|
|
|
|
|
-
Wohlstand
- Chargin' Chuck

- Posts: 2008
- Joined: Tue Feb 11, 2014 4:44 pm
- Flair: [ˈvoːlˌʃtant], 狐エンジニア
- Pronouns: he/him
-
Contact:
Postby Wohlstand » Sun Aug 30, 2015 5:43 am
You have multiple ways:
Way 1:
1) make individual layer for your block
2) make event chain with movement: E1: X0, Y-2.5, T0.1; E2: X0, Y-0.5, T0.1; E3: X0, Y0, T0.1; E3: X0, Y0.5, T0.1; E3: X0, Y2.5, T0.1; E3: X0, Y2.3, T0.1;. You can modify times to make that working smoother. (don't forgot to stop this movement after 10 sec. and then hide layer [just in case])
Way 2:
1) make hidden layer with one of solid NPC sceneries like rocket engine block. When you hit block, that block will fall down. But player will not be hurted or then set nohurt=0 to that NPC
About Tetris-like game: you can check out A2MBXT where one of levels has a similar Tetris: blocks are falling down and player must move to be not squished or hurted by also falling NPC's
|
|
|
|
|
|
|
|
|
-
Rai
- Shy Guy

- Posts: 9
- Joined: Thu Aug 20, 2015 6:36 pm
Postby Rai » Sun Aug 30, 2015 6:04 am
Wohlstand wrote:You have multiple ways:
Way 1:
1) make individual layer for your block
2) make event chain with movement: E1: X0, Y-2.5, T0.1; E2: X0, Y-0.5, T0.1; E3: X0, Y0, T0.1; E3: X0, Y0.5, T0.1; E3: X0, Y2.5, T0.1; E3: X0, Y2.3, T0.1;. You can modify times to make that working smoother. (don't forgot to stop this movement after 10 sec. and then hide layer [just in case])
Way 2:
1) make hidden layer with one of solid NPC sceneries like rocket engine block. When you hit block, that block will fall down. But player will not be hurted or then set nohurt=0 to that NPC
About Tetris-like game: you can check out A2MBXT where one of levels has a similar Tetris: blocks are falling down and player must move to be not squished or hurted by also falling NPC's
Erm... I'm thinking of trying method 1 as method 2 didn't really seem to work, but I don't really understand what you're saying. Could you simplify it a bit? I'm a bit new to the technical side of making levels and stuff.
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9890
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Sun Aug 30, 2015 6:12 am
Rai wrote:Wohlstand wrote:You have multiple ways:
Way 1:
1) make individual layer for your block
2) make event chain with movement: E1: X0, Y-2.5, T0.1; E2: X0, Y-0.5, T0.1; E3: X0, Y0, T0.1; E3: X0, Y0.5, T0.1; E3: X0, Y2.5, T0.1; E3: X0, Y2.3, T0.1;. You can modify times to make that working smoother. (don't forgot to stop this movement after 10 sec. and then hide layer [just in case])
Way 2:
1) make hidden layer with one of solid NPC sceneries like rocket engine block. When you hit block, that block will fall down. But player will not be hurted or then set nohurt=0 to that NPC
About Tetris-like game: you can check out A2MBXT where one of levels has a similar Tetris: blocks are falling down and player must move to be not squished or hurted by also falling NPC's
Erm... I'm thinking of trying method 1 as method 2 didn't really seem to work, but I don't really understand what you're saying. Could you simplify it a bit? I'm a bit new to the technical side of making levels and stuff.
I would never use Method 1, because Method 2 is just 100 times easier. Did you hide the switch block layer when the block gets hit, and replace it with the rocket engine?
|
|
|
|
|
|
|
|
|
-
Wohlstand
- Chargin' Chuck

- Posts: 2008
- Joined: Tue Feb 11, 2014 4:44 pm
- Flair: [ˈvoːlˌʃtant], 狐エンジニア
- Pronouns: he/him
-
Contact:
Postby Wohlstand » Sun Aug 30, 2015 6:21 am
Enjl wrote:Rai wrote:Wohlstand wrote:You have multiple ways:
Way 1:
1) make individual layer for your block
2) make event chain with movement: E1: X0, Y-2.5, T0.1; E2: X0, Y-0.5, T0.1; E3: X0, Y0, T0.1; E3: X0, Y0.5, T0.1; E3: X0, Y2.5, T0.1; E3: X0, Y2.3, T0.1;. You can modify times to make that working smoother. (don't forgot to stop this movement after 10 sec. and then hide layer [just in case])
Way 2:
1) make hidden layer with one of solid NPC sceneries like rocket engine block. When you hit block, that block will fall down. But player will not be hurted or then set nohurt=0 to that NPC
About Tetris-like game: you can check out A2MBXT where one of levels has a similar Tetris: blocks are falling down and player must move to be not squished or hurted by also falling NPC's
Erm... I'm thinking of trying method 1 as method 2 didn't really seem to work, but I don't really understand what you're saying. Could you simplify it a bit? I'm a bit new to the technical side of making levels and stuff.
I would never use Method 1, because Method 2 is just 100 times easier. Did you hide the switch block layer when the block gets hit, and replace it with the rocket engine?
NPC-58: Rocket Engine block

|
|
|
|
|
|
|
|
|
-
RudeGuy
- Bowser

- Posts: 4994
- Joined: Fri Dec 27, 2013 7:36 am
- Flair: local guy
Postby RudeGuy » Sun Aug 30, 2015 6:24 am
About tetris thing: You'll have to make lots of events and layers for this. It's better if you use the tank NPCs so there will be less events. If you're using them, make an event for every layer you've made and in each event a layer shows. All the events should trigger the next event and have a delay (that you can choose)
|
|
|
|
|
|
|
|
|
-
Rai
- Shy Guy

- Posts: 9
- Joined: Thu Aug 20, 2015 6:36 pm
Postby Rai » Sun Aug 30, 2015 6:25 am
Enjl wrote:Rai wrote:Wohlstand wrote:You have multiple ways:
Way 1:
1) make individual layer for your block
2) make event chain with movement: E1: X0, Y-2.5, T0.1; E2: X0, Y-0.5, T0.1; E3: X0, Y0, T0.1; E3: X0, Y0.5, T0.1; E3: X0, Y2.5, T0.1; E3: X0, Y2.3, T0.1;. You can modify times to make that working smoother. (don't forgot to stop this movement after 10 sec. and then hide layer [just in case])
Way 2:
1) make hidden layer with one of solid NPC sceneries like rocket engine block. When you hit block, that block will fall down. But player will not be hurted or then set nohurt=0 to that NPC
About Tetris-like game: you can check out A2MBXT where one of levels has a similar Tetris: blocks are falling down and player must move to be not squished or hurted by also falling NPC's
Erm... I'm thinking of trying method 1 as method 2 didn't really seem to work, but I don't really understand what you're saying. Could you simplify it a bit? I'm a bit new to the technical side of making levels and stuff.
I would never use Method 1, because Method 2 is just 100 times easier. Did you hide the switch block layer when the block gets hit, and replace it with the rocket engine?
Yes, but
1. I want the block itself to fall.
2. It's too slow - the player can escape really easily.
|
|
|
|
|
|
|
|
|
-
RudeGuy
- Bowser

- Posts: 4994
- Joined: Fri Dec 27, 2013 7:36 am
- Flair: local guy
Postby RudeGuy » Sun Aug 30, 2015 6:30 am
Rai wrote:
Yes, but
1. I want the block itself to fall.
Sprite Swap npc-58 to look like a block. Then make a layer for the real block and hide it when its event is triggered
|
|
|
|
|
|
|
|
|
-
Wohlstand
- Chargin' Chuck

- Posts: 2008
- Joined: Tue Feb 11, 2014 4:44 pm
- Flair: [ˈvoːlˌʃtant], 狐エンジニア
- Pronouns: he/him
-
Contact:
Postby Wohlstand » Sun Aug 30, 2015 8:50 am
RudeGuy07 wrote:Rai wrote:
Yes, but
1. I want the block itself to fall.
Sprite Swap npc-58 to look like a block. Then make a layer for the real block and hide it when its event is triggered
Oh, I totally forgot about "attach layer" thing!
Way 3:
- make hidden layer with block, make hidden layer with npc-51
- make npc51 to be friendly and then attach the layer with a block to this NPC
- make event which will show up both layers: with block and with npc
or will be easier:
- make your trap block in separated layer
- make invisible friendly npc51 with no block collision and with attached block layer
- OR: If you wanna than block will fall to ground: make invisible friendly npc51 and place it at side of trap block, and with attached block layer
- make event which will show up layer with npc51 on hiting block
working example of trap block:
http://engine.wohlnet.ru/docs/_files_fo ... 0block.zip
|
|
|
|
|
Return to “Help and Support”
Users browsing this forum: No registered users and 5 guests
|