Calfuso's Forum Posts

  • Not sure if that resolved your issue but you might want to deal with dt and a variable to solve this. Below is a link. Wait does allow for a delayed event but I'm not sure if you can continue to delay that event by pressing the button again or hitting the object.

    Use this link start at where the bold says every x seconds. It explains exactly what you are talking about.

    What i am trying to implement is that after 10 seconds you go to a different layout. But when you click on a object it delays that whit 4 seconds. That tutorial may show how to do that successfully but i may just not be skilled enough to understand how it shows that.

  • [quote:kdvvt941]

    quote]

    Yes, you can. Add wait and then add a sub-event. See screenshot bellow:

    I did that but it makes the event that is supposed to happen after a number of seconds never happen. Even if don't click on the object to delay the event it never occurs. Appearently the x seconds and go to layout doesn't work as a sub event.

  • I am trying to have it so a action happens after a number of seconds. But you are supposed to delay the events by a couple of seconds by clicking on a certain object. The farthest i got in this is the wait action. The problem is that it only can delay actions placed after it. Not events. The X seconds, the event that makes the action happen is a event and not a action. Can you somehow affect a event using the wait action?

  • I have made the layout bigger then default. I can play the layout well and it only shows a part of the entire layout and focus on the playable character. The PROBLEM is that after i have gone to the rigth a certain distance it stops scrolling and i can't see more of the level. I ahve found the Unbound scrolling and choosed yes but if i do that it makes everything fail when i play the level, i am not where my playable character is anymore and are just somewhere on the layout outside my level. Can anyone help me figure out how Unbound scrolling works or any other way to make the layout keep srolling to the rigth no matter how far you proceed. Don't insult me becuase i don't know much.

  • I have made the layout bigger then default. I can play the layout well and it only shows a part of the entire layout and focus on the playable character. The problem is that after i have gone to the rigth a certain distance it stops scrolling and i can't see more of the level. I ahve found the Unbound scrolling and choosed yes but if i do that it makes everything fail when i play the level, i am not where my playable character is anymore and are just somewhere on the layout outside my level. Can anyone help me figure out how Unbound scrolling works or any other way to make the layout keep srolling to the rigth no matter how far you proceed. Don't insult me becuase i don't know much.

  • Okay so i have figured out how to make the layout bigger. I have made my layout bigger. The problem is that when i play the layout the whole layout is showed on screen at once, in other words it's zoomed out to max and everything get's tiny and you can't see what you are doing. I want to know how you can make you only see a small part of the layout and it needs to be a specific part so you see the playable character. I have tried adding the behavior Scroll to to the main character but i still doesn't see the part where the main character starts. Can anyone help me whit this? And don't insult me becuase i don't know much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The size of the layout is the white canvas, you change its size at the layout properties menu. The size of the screen however (which is the dotted retangle) you can change at the project properties. Just click at your project folder at the menu on the right and you'll be able to see it.

    About the goal thing. It's quite simple, all you need is an object to be your goal, it can be a castle, a door, a sign, a flag or even nothing. Just place a invisible object at the end of the layout and it shall do the trick.

    Set a condition to trigger when the player collides with this object, then you can either call the function "go to next layout" or you can use "go to layout "name" ".

    Hope it helps[/quote > > I could change the layout size but when i play the screen get's zoomed out so everything get's tiny and you can't see what you are doing. Can you keep the same zoom when you make the layout bigger? I see alot of options but i can't see anything that change your zoom.

  • Okay i want to know if you can make your layouts bigger. The default size is far from the size i would want my levels to be. I have tried changing the numbers to higher numbers in layout size in properties. But that doesn't make the game bigger wh

    en i test it afterwards. The layout is the lined rectangle in the bigger picture. Sizing the layout only seems to make the space around the layout bigger not the inlined part that you only can play. So how to make the playable layout bigger?

    "Update" I know now how to make the playable layer bigger. The problem is that the game shows the entire layer when you play it so everything get's tiny. I want to know how you make it just show a little part of the layer, mainly the part where your playable character is.

    Next question is how to make a goal. Each layout is a level. I want to know how i can make a object that will make we go from my first layout to my second layout. The object will be placed at the end of the level so when i got it i have beaten the level and procced to the next. So far i only know how to play the layouts individually. Can you make them connect like this or not?

  • It must/should have also said to change the variable type to "Text" - the default is "Number". Which tutorial are you looking at?

    I changed to text and now works. Thanks for your help!

  • You variable is a number, so it can't contain text. Set up your variable as string.

    Okay so what is a string then? I am following a tutorial and it says to set value "left" not 6. If i am supposed to write left whit numbers what i should i write then? It do work whit numbers like -10 but that.s not what i am supposed to write according to the tutorial. It should be left somehow.

  • Okay so i need to make the action set value and then write in "left". But when i click on done afterwards it says Invalid Value `left` For value. You cannot set a string to number variable `action` use int() or float() around the expression to convert.

    I have tried to follow the instruction that pops up but whitout success. I have put in many other things in the text but it just turns into a syntex error instead. Can anybody help me how to sucessfully out in "left" in set value?

  • Okay Construct 2 is supposed to be a game making program that you don't need to use codes to use. Then i found a tutorial called How to make a megaman inspired game in construct 2. I can't post URLs so just google the sentence to find the tutorial. The tutorial is great for helping me whit the things i want in my game. It's clearly written that you need to put in codes to do as the tutorial says. It seems like the codes make custom events and actions that you need. So you need to put in the codes that's written in the tutorial. The question is how. I can't find a single part in Construct 2 whit codes or where you can put in codes. An idea i got was to export my project. That way i got the runtime and jquery parts of the file which pretty much is lots codes. I tried putting in the codes from the tutorial in these windows. But when i opened the project nothing had changed, i hadn't gotten the custom events and actions. I think the reason was that when you have exported the project it isn't a Construct 2 file anymore, just a playable game and any changes you do it after export doesn't affect anything since the file you open in construct 2 is the pre exported file that hasn't gotten any codes changed. So you need to put in codes into the project before you export it. Theres no extra file to the project that you open so you need to open the project file itself whit notes. There you get a window whit a bunch of codes. So i tried to put in the codes that was written in the tutorial after the already existing codes. I tried opening the project to see if something changed. I couldn't open the project anymore. So i in other words sabotaged my project when i put in the codes there. So how do i then put in the codes so i can keep following the tutorial? Don't just say that Construct 2 needs no coding. If you want to do like this tutorial says you need coding and i want to get help on how i code in construct 2. Try following the tutorial itself if you have trouble understanding what i mean.