hertles's Forum Posts

  • I understand, thank you very much! anyway, could you explain why using data files (xml etc..) would be more efficient?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to implement a text game with images and option like a gamebook, I'm sending the capx on how I did it and I would like you guys to take a look at the event sheet. It's very simple and basic, but as a beginner, I think it's the most understandable way to do it. I know It's easy to get lost with the variable and mess things up, but I'm thinking that if I going foward with this, I would use some stickers to keep track of the story (just like in bandersnatch) And I think that I will be able to organize things like that. The file:

    dropbox.com/scl/fi/odii8ldsvvxec6u94zucz/textgametest.capx

    The Question is:

    - Is there a better way to do it? (Please, don't suggest overcomplicated stuff like xml, json files or arrays. I tried to learn these things, but it goes too over my head. Of course, unless you have a step by step compilation of videos that teaches how to use that, for what I'm trying to do, you're welcomed)

    - and the most important...If I keep doing this way, will it affect my game's performance?

  • Browsers sandbox most things, including storage, by origin (essentially the domain, plus protocol and port). See the Same-origin policy for more details.

    In practice this means if your website runs on example.com, you can access anything else that happens on example.com, but not anything else that happens on other websites like on construct.net. It's an important security barrier to ensure things like other websites cannot steal your login details for other sites. It's possible to get other domains to intentionally share their information if they are specifically designed to do so, but it's technically quite complicated, and there are all sorts of privacy, security and anti-tracking hoops to jump through.

    Understood...So It's not possible. Not even possible with another type of export? like NW.js?

  • I'm trying but still did not manage to do it. I just wanted to know if is possible. (but a "how to do" would be great anyways)

    I'm trying to load the variable "life" in my other game when i hit the button load, I don't know if I'm doing it wrong or is just not possible but It always missing the file.

    edit: It works in construct, in the local host. It just dont work in exported version.

    Tagged:

  • You can do a great experiment.

    You can post this "с3p" file.

    And in half a year open it again, and if this code doesn't seem bad to you, then you haven't made any progress in half a year.

    I do that a lot when I open old projects.

    Happy New Year!

    To be real, I already think is bad hahaha. But I still don't know how to make it better

  • I had such a hard time to discover this that I decided to make a post the teach whoever needs it.

    In the forum, you may find some posts saying that you could create an object and put the scroll behaviour, make it invisible and then moving it.

    There's just one problem with this solution, when the object "camera" goes out of screen center, it take a moment to the camera start moving again since camera must return to the center of the screen to start moving. I found a much easier and elegant solution to this.(And you dont need the scroll behaviour)

    There is some actions called "set scrollX" and "set scroll Y" that sets the camera scroll coordinates. So you could create two global variables called "scrollY_var" and "scrollX_var" and then suppose that you want to move the camera to the right and left. You could do this:

    [On "d" key down] ""or any other trigger""

    -> Add 10 to scrollX_var ""change the number to change camera speed""

    -> Set scrollX to ScrollX_var

    [On "a" key down]

    -> Subtract 10 from scrollX_var

    -> Set scrollX to ScrollX_var

    Now you need to limit the "scrollX" value to not get over your layout and having delays in moving the camera. To do this, create this event:

    (To do this go to system -> compare variable)

    [If scrollX_var > layoutWidth - your layout width divided by 2]

    -> Set scrollX_var to scrollx (I don't know why to set to this, but it just works)

    [If scrollX_var < your layout width divided by 2]

    -> Set scrollX_var to scrollx

    And you can do the same thing for the de Y axis

  • Thaks man! but i forgot to say something. I'm using construct 2. So I don't have the tween behaviour :/

  • This is how I did it. It works, but is too abrupt. I tried to use fade behaviour but i don't seem to work all the way. I saw other topics about this but I sincerely dont understand. Please help?

  • Thanks man!I had a look but the hotspot in all frames are alright

  • No one?

  • Here it is how is in the game itself:

    Subscribe to Construct videos now

    The problem that is pissing me off is that the sword flash animation in the third attack is misplaced (slow down the video to see it right)

    I made the animation using 3 functions

    function 1: ready the weapon animation (when clicked the icon)

    function 2: first sword swing (at space key pressed)

    function 3: second sword swing (at space key pressed again)

    and than in the third swing (space key again) comes by calling function 2 again (I suspect that this is the cause of the problem, cus the third attack dont use function 1 but I still can't figure out how to fix it)

    The flash sprite animation and sword animation are separated because I wanted to use the same moveset to other weapons. Here is how I did it

    On Function 1 :

    On function 2 :

    On function 3 :

    The image point location:

    Tried to change it but it just turn the animation messier

    Any idea why is this happening? should I had made the animation different? I'm not the best at construct, and some things may be a little amateur.

  • I know, but I got some plugins in construct 2 so its a little hard to do some things

    all over again

  • I making a game in construct 2 due to it's 100 events limit (free version). May I sell this game if I get construct 3 license?

  • Can I just make a huge layout (10000x8000) and a tiny windows size (800x400)? if not, how can I do it?

  • Sorry man, the last link works, It's just I did not extracted the files.