JohnnyBeGood's Recent Forum Activity

  • hi! so i have a layout size (1200x800)and a window view (600x400)smaller than the layout size so i was wondering how can i spawn an object inside the windows view. im asking this cause i tried to use spawn object>randomx(0,800), random y(0,1200) but the thing is that thera are some object spawning outside the window view so they are not visible to the player. id like to make them spawn always randomly inside the window view no matter its size (cause its a scalable window view and depending on the smarthphone id be bigger or smaller)

    help. thx.

  • i want to put a life indicator in my game but all health bars and hearts dont look cool. i want something smart looking, or material design alike. something easy but not crappy at all.

  • Can you give us a capx ? it would help !

    luckyrawatlucky

    Divivor

    AkiraBoy

    mediafire.com/file/uxv96s6sfff1jr4/example.capx

    example here, enjoy and help

    mediafire.com/file/uxv96 s6sfff1jr4/example.capx

  • please explain clearly

    do you want to keep character at your last touch point or you want to delete it

    i want to keep it on my last touch point until i touch again, so when i touch again the one that was on my last touch position gets deleted and a new one appears on my new touch point.

  • i do not understand very much

    but what i understand is

    you want to spawn single character from multiple and each one has a number

    and you have problem, when you want spawn single character only once, Character is spawning multiple time

    so if i am right

    Then it seems like you are doing a mistake like

    when global variable =2 then spawn character 2

    this is the problem because character will be spawn every time until you change global variable

    so to fix this you have to do is

    > When global variable =2

    Trigger once while true | Spawn Character 2

    I hope it helped

    luckyrawatlucky also i want once i remove my finger, to leave the character on my last touch point until i touch again, so when i touch it destroys last character.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i do not understand very much

    but what i understand is

    you want to spawn single character from multiple and each one has a number

    and you have problem, when you want spawn single character only once, Character is spawning multiple time

    so if i am right

    Then it seems like you are doing a mistake like

    when global variable =2 then spawn character 2

    this is the problem because character will be spawn every time until you change global variable

    so to fix this you have to do is

    > When global variable =2

    Trigger once while true | Spawn Character 2

    I hope it helped

    do i attach trigger once while true with the global variable in the same box (under ir, but in the same Y point) or do i make it a subevent?

    what about the touch movement? shoul i put a new event with its proper movement or all goes inside global variable box?

  • Hi. I need some help with my character selection.

    what happens is that i have a main charater in display on level 1 layout (destroyed on layout start). that character (and all of them) are moving with touch, so when i touch its position is where i touch and if a drag the finger, the main character follow my finger.

    the problem comes when i have several characters (1,2,3...) to choose. i made a global variable with so many values, each value is a character, but now, how do i spawn once the character i selected where i touch? because meanwhile the global variable is 2 for example, (because i selected that character), it's a non stop character selected spawning, every where i touch it creates a character and when finger moves it leaves a path full of the character i selected.

    how can i make it work like the main character?

    i thought of putting every single characetr on level one and then destoy them on layout start, but wouldnt it take ages to load that level? there are like 50 characters to choose..

    how can i fix this. help-

  • Hi. I need some help with my character selection.

    what happens is that i have a main charater in display on level 1 layout (destroyed on layout start). that character (and all of them) are moving with touch, so when i touch its position is where i touch and if a drag the finger, the main character follow my finger.

    the problem comes when i have several characters (1,2,3...) to choose. i made a global variable with so many values, each value is a character, but now, how do i spawn once the character i selected where i touch? because meanwhile the global variable is 2 for example, (because i selected that character), it's a non stop character selected spawning, every where i touch it creates a character and when finger moves it leaves a path full of the character i selected.

    how can i make it work like the main character?

    i thought of putting every single characetr on level one and then destoy them on layout start, but wouldnt it take ages to load that level? there are like 50 characters to choose..

    how can i fix this. help-

  • Generally speaking, I would recommend using a single variable to represent a single property/idea, rather than using an individual boolean variable for each possible value.

    So each of your characters has a unique number associated with it. Save that number to your "SelectedCharacter" variable, and use that number for your event conditions.

    in conclusion: one single global variable with tens of values, each value is a character...

  • i want my game to have tens of characters to select. first of all how can i set the character i selected (with its respective controls) to the level im playing?

    i did some research and i found global variables the best way to do it. but having tens of characters makes me wonder, is it better to have 1 global variable with tens of number values (each value is a character)? or tens of global variables with 2 values (0/1)?

    i found another way too which consisted in animations but didnt get it right.

    Also please tell me how to do it cause im having a hard time trying to. is there a tutorial somewhere?

    thanks

  • >

    > > Then reset the variables like time and health only at the start of the game layout.

    > >

    > > That only runs once and won't effect player choice variable.

    > >

    > could be a solution but not completly, enemies are way far from their spawn point by the time i click start and play the game.

    > also the player could spend minutes on the menu cause there's like 70 characters to select...

    >

    70 characters to select?

    Good grief no wonder you are having problems.

    64 to be exact

    any solutions?

  • You can prolong this by not including your main game event sheet in the start event sheet. However, you have to keep in mind the event sheet will have ran through several iterations (60 times a second) before you even see it upon a regular load. So make sure you add sufficient delay between your "on start of layout" setup stuff and your running game events.

    how can i not include that?

    also the player could spend minutes on the menu cause there's like 70 characters to select so putting a delay wouldnt fix this...

JohnnyBeGood's avatar

JohnnyBeGood

Member since 8 Mar, 2017

None one is following JohnnyBeGood yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies