otomecha's Forum Posts

  • There are many approaches to this. You can relate the button to the eyes object then you can say on button clicked, subtract eyes.price with a condition where you relate button to eyes such as 'eyes is overlapping button'. You could also try something clever with matching IDs where eyes and its related button have the same ID variable and use this as a condition instead.

    Also on the eyes object I would add a string instance variable for the eye colour then you can limit all those set eyecolour events to one which would be set global variable EyeColor to eyes_UI.eyecolour(the instance variable). So rather than set a value based on animation frame, you can set the global variable based on information on the eyes object itself.

    Hello lionz ! Thank you for your ideas!

    I tried with the eye object instance thing, but I can't get it to work :/ In the debug I can see it gets the right label "Black", "Brown", "Hazel"... etc

  • Hello!

    I am doing some tests with an ingame shop feature. I have 2 instance variables, price and locked(bool).

    I wanted to summon a button under each locked instance and write the price. I wanted this button to 'buy' (unlock) the item if there's enough money.

    The problem is the "buy". Once I click on the button it gets the price from the latest price value, stored in the variable. Also when unlocking, it unlocks everything :/

    I don't know how to pick the particular value ....

    Subscribe to Construct videos now

    Thank you for your time!

  • I would suggest just making a function that has 1 parameter. The parameter will be the Layer you want your character to go to. Inside the function you just move each item to the new layer in the correct order.

    It's gross to do, but you only need to do it 1 time, then you can call the function whenever you need to.

    Yeah I was thinking about doing this! bad side is that I have several characters so it's kinda meh. But thank you anyway!

  • If you have a purchased Construct account you can put all the pieces into a family. Then move the family to the other layer.

    If you dont have a family you will just have to call all of them individually

    Oh, I tried with the family and it worked! But also it removed the previous z structure, so even it moved the different items they look wrongly sorted -_-

  • Hello!

    I have a composite characters. The torso is the parent of the different body parts.

    I have this in start layout:

    But when I move the torso to a different layer the children remain in the old one. Is that how it's supposed to behave?

    Thank you!

  • Hello!!

    I have a functionality in my game where characters can grab certain objects when dragged to their arms.This works well.

    I have a problem though with the unpinning process. When I unpin 1 object all the objects inisde the family get unpinned. If I have 2 characters holding something and I unpin 1 item from character 1, character 2 will also drop the item.

    Here's a video...

    Subscribe to Construct videos now

    Thank you very much for your help!

  • KryptoPixel winstreak

    Thank you very much! this worked!

  • Hello!

    I'm trying to set up an image that spawns/despawns a particle when touched.

    This is the code I have. When I touch it, it spawns properly, but once I touch it again it doesn't get destroyed.

    Subscribe to Construct videos now

    Tagged:

  • Use one event, on double tap. With sub event, animation frame = 0, Else animation frame = 1. Make sure you use the system else.

    Works like a charm! Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello!

    I'm trying to do a simple thing but I don't know why it's not working :/ I have a sprite and I want to toggle frame 1 and 2 when double tapped.The animation has speed 0 so it's an static image.

    I tried like this and it doesn't work. If I only put the on double tap it works, but I need the condition for the toggle.

    Thank you veyr much for your help!

  • You do not have permission to view this post

  • Hi!

    I'm currently working on a VN using this framework made by mindfaQ.

    For those who may be interested, they can download the test capx from here.

    I'm trying to 'customize' it a little bit and I managed to add a gallery, and the next thing I would like to do is being able to go back to the 'game' from a previosly jumped different layout.

    (game layout)reading Vn_script -> going to a diff layout (for a minigame, for an ad...etc) -> go back to a especific anchor

    The part to go back to a specific anchor is what I don't know how to do... Any idea of how to do that ?I tried many things, like copyinh the 'go to' function as an example and replacing the value by a variable that matches de anchor name, but it didn't work. Also tried to change the ajax url from the script.txt to a different file so I can jump there, but it also didn't work ^^U

    Thank you for your time!

  • Hello! I'm currently working on a VN with this framework. Not sure if It's okay to post it here, but I wanted to know if you guys know how to do this:

    I managed to add a gallery, and the next thing I would like todo is being able to go back to the 'game'from a previosly jumped layout.

    -> inside de Vn_script -> going to a diff layout (for a minigame, for an ad...etc) -> go back to a specific anchor

    The part to go back to a specific anchor is what I don't know how to do... Any idea of how to do that?

    Also any idea of how to check a variable? when a choice is done? so the go to is different ^^U

    Thanks for your time!

  • > The only thing is that I tried to port it to C3 that is what I am using now, but I couldn't... Ashley Is there any way we can make it work?

    Delete "webstorage" plugin in the project.

    Thanks Eren! Unfortunately I already tried that (also deleting function) and it's impossible to make it work on C3... Sadly I tried 4 C2 games, and only one worked (even deleting the all the plugins) I'm porting everything by hand =_=

    ** update **

    I'm gonna try getting a newer version of construct, since the one i had installed was a little bit old. Let's see if it works ^^

    ** update 2 **

    Same result u_u

    ** update 3 **

    It worked! It seems I had an image warning that prevented me to convert it!

  • Yesterday I played a little bit with the capx and I must say it's an amazing work! the best VN framework for C2 I tried so far!

    The only thing is that I tried to port it to C3 that is what I am using now, but I couldn't... Ashley Is there any way we can make it work?

    Thank you very much!