This tutorial hasn't been translated.
This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.
Hello, in this tutorial we will create a character and when you shoot the ball touches the wall teleport us there.
We'll use a sprite to the floor, one for the character, one for the bullet and will use particles.
- Create sprite floor, put solid performance.
- Create a character and put sprite platform behavior.
- Create a sprite for the bullet and put the bullet behavior.
- Create particles
- Create keyboard.
Once settled sprites, go to the tab events.
Add event, Keyboard> On Z pressed.
Add sub event to keyboard: |Player is mirrored|
add action: |player spawn bullet on layer 1(image point 1)
add action: | bullet |set angle to 180 degrees|
copy and past prev code and invert. Modify set angle to "0"
Add new event: |bullet| on collition and other objet ground|
add actions: |player set position to bullet|
add action: |player spawn particles on layer 0 (image point 0)
add action: |bullet|destroy|
Add new event: |keyboard|on left arrow pressed|
add action: |player|set mirrored|
add action: |bullet set mirrored|
add new action: |keyboard| on right arrow pressed|
add action: |player| set not mirrored|
add action: |bullet| set not mirrored|
Comment!!! Thank you!!!