Тёмный

A Beginner's Guide to Construct 3: 09 Shooting (bow effect) & Destructible Walls 

Matthew Marquit
Подписаться 6 тыс.
Просмотров 12 тыс.
50% 1

Other Resources:
-Official-
editor.constru...
www.construct....
-Assets being used in this video-
(Bilge Kaan- Super Platformer Assets)
www.scirra.com...
- Royalty Free Assets-
(Kenney's Assets- Platformer Sprites)
kenney.nl/asse...
-Other Construct Learning Options-
(Jeremy Alexander)
www.udemy.com/...
(Anthony Jordan)
/ @9ar7k
(GameDev)
/ @gamedevelopmentchannel

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@s_punit
@s_punit 4 года назад
For those who are making their own sprite for the bow at 4:15 keep the Resize Image Canvas as : Width = 7 and Height = 3 and then paint it just like in the video. Thank you Matthew for the amazing video and it really helped me a lot :)
@Wubbadubbadubdub
@Wubbadubbadubdub 3 года назад
I couldn't get the arrow to spawn or show bowline so I had to put the animation shoot finished/player movement activated AFTER player spawning bowpoint/bowline like it is in your notes for some reason doing it like you did (changing what your notes had) messed it up for me but figured it out thanks so much great playlist
@Microbex
@Microbex 7 лет назад
Good tutorial Matthew, thanks.
@johnheck355
@johnheck355 3 года назад
Great vids...quick and to the point. Are the lesson docs available to purchase or download?
@mattofwgkta
@mattofwgkta 3 года назад
Ive nearly finished my game! The only thing is, is that when the enemy is facing away from the player (when the player is in its default position facing right) the enemy acts as a wall and the arrow gets stuck in mid air and i cannot kill the enemy. I have read one comment supposedly having the solution to this but it did not work for me however. I have tried many things and nothing has seemed to work :(
@roninlogic5107
@roninlogic5107 3 года назад
yeah me to, trying to figure it out as we speak
@roninlogic5107
@roninlogic5107 3 года назад
tried all the various fixes in the comments section with no joy, so I've re-positioned the origin point of the arrow (in my case the throwing dagger) moving it back by 1 pixel so the arrow overlaps the enemy for slightly longer giving the impact and destroy event more time to play out or at least thats what i assume is taking place... regardless works like a charm time to move on to dodge roll and melee :)
@sperryberrycrunch
@sperryberrycrunch 3 года назад
@@roninlogic5107 You saved day!
@HooGames2017
@HooGames2017 3 года назад
I have a little problem with the animation of the player. Whenever the screen moves and I want to play it in preview and it starts scrolling, the player looks washed out in the motion animation. How can I set it to render the animation pixel perfect. It looks like it is just making some kind of filter over the player as it scrolls and so the animation looks washed out. I'm using a resolution of 320x180 and pixel perfect clicked.
@HooGames2017
@HooGames2017 3 года назад
How can i download the Construct 2 lesson docs?
@JoBHeavyMetal
@JoBHeavyMetal Год назад
Great tutorial but wish it was less complex, especially this lesson Like, creating simple shooting first, and add all those winkles and arrow lines later or in separate lesson. I'm getting overwhelmed with info but I don't need half of it and can't tell which parts are necessary
@ghostie7764
@ghostie7764 4 года назад
I have an issue where my arrow spawns on the Arrow image point, but the image point is stuck facing the right side. Basically, my arrow is stuck shooting right even if I look left.
@andrebot0620
@andrebot0620 4 года назад
my game freezes everytime i shoot how do I fix that
@mousearts7079
@mousearts7079 4 года назад
Put it in the microwave to keep warm
@andrebot0620
@andrebot0620 4 года назад
@@mousearts7079 thank you it worked! :)
@mousearts7079
@mousearts7079 4 года назад
AndreBot06 :)
@fairdice
@fairdice 3 года назад
Hey, I had the same problem. I checked my event sheet and I forgot to put the actions for the "Else"-sub condition into the condition itself. I checked it after I solved the problem and before that my shooting only worked when my player was facing one direction but the game completely froze when I clicked while he was facing the default direction.
@iancharlesblack8704
@iancharlesblack8704 4 года назад
Fantastic tutorial series! I've quickly become a fan of Construct 3. One question I had was, without using the bullet behavior method in video 10 but using this video's method, how do I adjust the speed of the arrow? I thought it would have something to do with the "Move forward -1 pixels/1 pixels" section, but I've had no luck. Any help would be appreciated! Thanks!
@MatthewMarquit
@MatthewMarquit 4 года назад
Thanks, yeah Construct is a great lightweight game engine. It's been forever since I did this so I looked at my notes. In my notes, it says "this basically shoots a BowPoint to the nearest collision directly in front of the player, measures the distance between it and the Player, then spawns the BowLine that matches this distance in order to give the illusion there is an arrow flying across the room." In essence, you can't control the speed of the arrow because nothing is "moving" across the screen. It's all instantaneous, the line and arrow spawn at the same time, neither move location, the arrow just shakes using a sine behavior.
@iancharlesblack8704
@iancharlesblack8704 4 года назад
@@MatthewMarquit Thank you for the response. I really appreciate it!! That's kind of what I was starting to wonder, but being new to the engine, I am quite grateful for the sanity check. Thank you again!
@akhSatya
@akhSatya 9 месяцев назад
why when i do the bowpoint and bowline event,when i put the image point it says false?
@SadBombWolf
@SadBombWolf 2 года назад
This video is helpful but it would help a lot more if you edited out the parts where you made little mistakes.
@Blittlefield32
@Blittlefield32 4 года назад
Hi! Small question, what is happening when you set the origin points to 1&1 or 0&0 and why is it really important? Trying to make sure I understand the process. Thank you for your help!
@MatthewMarquit
@MatthewMarquit 4 года назад
In general, the origin point is basically how the engine defines the position of an object. It also uses it to align animations among other things.
@Blittlefield32
@Blittlefield32 4 года назад
Matthew Marquit ok, that’s what I figured. I was more wondering how to figure out what values you need to set them to. How did you come to those numbers? Thanks for those answering and for all the help! Very appreciated!
@MatthewMarquit
@MatthewMarquit 4 года назад
@@Blittlefield32 It's where on the image I want the object to spawn from in most cases. Let's say I put the origin point on the front of the arrow sprite as opposed to the back, well, it could potentially spawn inside say, the player character. If the arrow is set to be destroyed when it collides with another solid object then it will disappear the moment it spawns making it seem like it was never there. If on the other hand it's on the back of the arrow then it will spawn outside the character's collision and be fine. I just click around in the sprite editor and look at what coordinates are being displayed on the top to find the numbers I want.
@Blittlefield32
@Blittlefield32 4 года назад
Matthew Marquit thank you! Also, is there a way you would recommend setting up my project to develop for mobile? And is there a way for me to emulate the game on my phone once I have completed a level?
@_cul8r_
@_cul8r_ 4 года назад
I have an issue that my enemy when not mirrored takes the arrow hit fine and the arrow is destroyed, BUT if the enemy is moving away from the player the arrow is spawned but not destroyed and the enemy doesn't take a hit. It's like the enemy/arrow collision event isn't working whenever the enemy is mirrored.
@MatthewMarquit
@MatthewMarquit 4 года назад
I've seen that happen with some of my students before. I'll be honest, I don't remember off the top of my head how we fixed it. Try slowing the speed of the enemy down and see if that changes anything. Also, try checking if the collision on the back of the enemy is flat vertically. It just sounds like by the time the arrow is appearing a split second after the bow effect, the enemy has moved away from that position so the arrow is treated as wall collision rather than an enemy collider. Worst case scenario, do the "simple effect" in video 10 as there is no "sticking in the wall" effect that can go wrong with that approuch.
@_cul8r_
@_cul8r_ 4 года назад
@@MatthewMarquit Thanks for the help. If anyone else stumbles across this problem I have found a solution/workaround. After some messing around, unsuccessfully with the most obvious solutions, I decided to remove the 'on overlap with patrol enemy' from the 'BowPoint-SpawnArrow' event and changed the 'enemy-on collision with arrow' to 'enemy-on collision with BowPoint' (and destroy BowPoint instead of the arrow). That way the BowPoint is the only thing that needs to collide with the enemy to trigger the damage event and no arrow is spawned when the point collides with it. That resulted in the behavior looking and acting like it should both coming and going (after all we really don't see the arrow spawn in the other scenario anyway).
@_cul8r_
@_cul8r_ 4 года назад
@@MatthewMarquit Also, oddly, I did check out the way the Super Platformer Engine EventSheet was set up and mine was set up as your was in the tutorial, and is exactly the same as the SPE template. The effect works in the SPE template, but not in mine. Super weird right? LOL
@MatthewMarquit
@MatthewMarquit 4 года назад
@@_cul8r_ , super smart. Great troubleshooting. Thanks for the update, I'll be sure to pass that information on to anyone who has the same issue in the future.
@rocketman6063
@rocketman6063 3 года назад
@@MatthewMarquit Hey, just thought I would share my experience on this issue as well, as I said I also ran into this bug, but I was able to fix it by slowing down the speed of my PatrolEnemy to 35 and slightly adjusting my collisions on my Enemy and arrow specifically. Also wanted to say great tutorial Matthew Marquit and thanks for the tip about slowing down the enemies!
@saeeddawod1599
@saeeddawod1599 5 лет назад
my only problem is that when i kill 1 enemy all the same type of enemy dies :O , do i have to rename each one i make?
@MatthewMarquit
@MatthewMarquit 5 лет назад
No, you shouldn't have to rename them. Even if something has the same name, all objects have a different UID (Unique Identification) number that sets them apart automatically. It's hard to say what is wrong without looking at it myself, but in worse case scenarios (and I realize this isn't that ideal) just try deleting the enemies out of layout and the scene in general and redoing them from scratch. Countless times have I helped students who swear they followed my video perfectly but something is still wrong with their game. At that point I usually suggest they just completely redo that one aspect of the game and 9 times out of10 it solves the problem. Often it takes longer to troubleshoot a small issue than it takes to just redo it.
@saeeddawod1599
@saeeddawod1599 5 лет назад
@@MatthewMarquit thanks!!!!!
@s_punit
@s_punit 4 года назад
Hello Matthew, everything is going great in my game just one issue : when I shoot an arrow (regardless to what) the animation of "shoot" is stuck in its last frame until I make the player move again... basically the player does not go "idle" after the animation "shoot". Can you help me out?
@s_punit
@s_punit 4 года назад
and also if the player dies while the animation "shoot" is active, he won't follow the "Player Movement" group (doesnt perform any animations like run, jump and does not mirror on pressing "left") and he moves without any animation just like the player moves when no animations are assigned. I thank you for reading this and helping me out before hand
@s_punit
@s_punit 4 года назад
...aaaaand I suffer the bug just like the one at 37:23 any idea what might be causing that?
@MatthewMarquit
@MatthewMarquit 4 года назад
A few things to check (sorry was away for Thanksgiving last week). The first, double-check the event that has Player is "On stopped" and "Is on Floor" > Set Animation to "Idle" (play from beginning) is set right, and be sure the spelling of Idle is the same as the animation on the player. Check that the Player's "Shoot" animation is set to Loop and Repeat Count is 1. Also, be sure that in the event sheet the Player has an event that says Player>On animation "Shoot" finished>System>Set group "Player Movement" Activated. Be sure you spelled the Shoot animation and Player Movement exactly as you have it on the Player and up in the event sheet respectively. Also, check to make sure the collision on the Player is flat on the bottom and is consistent on every frame of the Shoot animation and that the Player's Origin point is correct on each frame of the Shoot animation.
@s_punit
@s_punit 4 года назад
@@MatthewMarquit Thanks a lott. Its running perfect now. You ARE THE BEST