Juicy's Recent Forum Activity

  • Thanks razor monkey for the advice, that worked like a charm, now that i see that, its so obvious i feel silly.

    Everade, im not entirely sure why i used that container in the first place. Guess i sort of though that a shotgun shell is a container of pellets..sooo anyway, changed it so that each pellet has its own destroy on collision state. Works fine now, thanks! I didnt try this boolean thing just yet as Razor monkeys advice worked great, however. Now that i got the two weapons to work like i want, im curious if this way i could use more than two weapons at a time?

    Lordshiva, thanks for that. I remember you posting a reply to the other thread as well. However, this type of weaponchange does not really work with my project. Much appreciated nonetheless.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Since my original question at the beginners section seemed to go nowhere, i figureg i might step it up a bit and ask basically the same thing here.

    Im trying to create a game similar to crimsonland where you have hordes of enemy coming at you and you try your best to keep them at bay until the inevitable defeat. The player has only one weapon to use at any given time, but can change the weapon if anotherone is spawned to the playfield.

    What i would want to create, is the player to have a max of two weapons at his/her disposal. a primary, and a secondary weapon. That he could change should an enemy drop one for example.

    Where i've gotten so far, is that i have the player start off with nothing. he can pick up two weapons that shoot their own bullets and the weapons can be changed through mousescroll. Now on the mousescroll change, i have a bit of an issue that i cannot seem to figure out. The weapons on the ground react to the mousescroll before i've even picked the up. How would i set it so they only react to the mousescroll if equipped by the player? Another issue is the bullets. I've got a shotgun on the game that shoots a burst of pellets. Problem is, all of the pellets dissapear after only one hits an enemy or goes over the grid. I assume this would be related to the fact that the bullet has a container that has the rest of the pellets attached to it.

    The gamefiles can be found at https://www.dropbox.com/sh/j9xxg9strbnfw5z/AADeIzHrZkAt_mDV036b7Klaa?dl=0 to see what i mean. Or https://dl.dropboxusercontent.com/u/73502848/New%20project/index.html to test the game on a browser.[/code:3v0x27fb]
    ^-- i guess im not allowed to post url:s , but im assuming im not hurting anyone here by going around the blocking like this..
  • Thanks for that, but it doesnt still quite address my problem. The original question i figured out allready, i just need to iron out a few kinks still. Perhaps the file link i posted would better explain my dilemma. I'm thinking now that i would maybe need an inventory system to the game for this and therefore maybe this question is not suited in the beginners forum?

    (even though im am very very beginner still)

  • Since it's been almost three days without any answer, i'm hoping no one takes offence if i bump this thread as im still at a loss. Weapons on the ground dissapear without before picking them up and another one is that if both weapons are picked up, i dont know how to make the one currently selected to stay and the one picked up to dissapear (as to go to your inventory sort of).

    Also as TheDom asked if i need only the two weapons or more, is there a crucial difference in this? just wondering if im making the whole thing somehow wrong if id like to make another game with more weapons in the future with the same principle.

    Quite supprised actually that it seems a bit hard to get an answer for this. I was almost sure there have been a million games made with the same idea as far as the multiple weapons go and my question would have been aswered with a sigh of "not this question again..."

  • Thanks for your time, ill pm you. In the long haul, id like the game to be more versatile and have more than two weapons, but im just learning the program and just trying to figure out how the thing works so for now two weapons will suffice untill i get the knack of it The idea i have is however so that the player can only carry a maximum of two weapons at a time and could drop them to change into another (say an enemy weapon for example)

    Edit: Seems like im not allowed to PM just yet. I put the files on dropbox so you should be able to see it from the address below

    https://dl.dropboxusercontent.com/u/73502848/ryss%C3%A4n%20kosto%20ver2/New%20project.caproj[/code:u6dgrz2i]
  • So a bit of an update as i've veered a little bit closer to the answer it seems. I finally got the two weapons to change with mousescroll and shoot their own bullets. A few problems reside.

    For some reason, when i shoot at the enemy with the shotgun, all of the pellets dissapear as soon as one hits an enemy. I dont understand why since i've put a destroy order on each pellet separately if they hit the enemy.

    The bigger issue is still with the weapon change. I got it to work kinda fine. The only thing is, now if i use the mousescroll before even taking a weapon from the ground, they switch places (scroll up, shotgun dissapears and rilfe appers and vice versa) how can i get the scroll switching to work only after i've actually piced up the weapons?

  • Uh, im completely new at this too so im not sure if this will even help, but something about the mouse aim :

    OnRightButtonClicked> "Player" Spawn "bullet" on layer 0

    "bullet" Set angle toward (Mouse.x, Mouse.y)

    this worked for me, havent got a clue about the sprite change thing though.

  • Well i got all the way up to getting the player to fire two types of ammo (with different mousebuttons :/ ) but the sroll change just doesnt seem to open up for me. Could i see a working example somewhere perhaps?thats as far as i got

  • I must be blind, but i cannot seem to find any tutorial that would explain how do you do a weapon change system to a game. To be more spesific, id like the player to have a maximum of two weapons and to be able to change them with the mouse scroll. I fiddled around some and managed to get the player to grab a weapon that it walks over to, but im clueless on how you would change the type of ammo it shoots. Say a pistol shoots one bullet at a time and a shotgun gives out a burst of pellets.

    Cheers!

Juicy's avatar

Juicy

Member since 24 Jan, 2015

None one is following Juicy yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies