5b25d909-8ab1-4ffe-a9fd-830f580cf260's Forum Posts

  • Hello,

    After viewing the javascript API for the text plugin, I do not think this is possible. The text colour affects the entire text.

    Why not have each task as a single text?

  • Hello,

    You mentioned that the issue is with step 2, setting the global variable. However the error provided suggests an issue with calling the toString method on undefined.

    Can you confirm your clean variable actually is defined? Also I don't see you actually returning a value from your showMessage function.

    Either these are the problems you are facing or you haven't provided the full source.

  • Hello,

    I have been using Construct 3 for a few days now. After finally getting to grips with the basic features I decided to start working on a retro rpg with arpg mouse movement.

    Not much to show off yet and as my trigonometry is rusty this took a lot longer than I had hoped for.

    Tagged:

  • Thanks for your response. I actually already have assets for my project. My base character is naked by default. The idea is that my character can dress in different cosmetic items and clothing.

    My character has animations such as attacking and rolling. When creating all the clothing it was drawn onto the player in each frame of each animation, then placed into its own sprite sheet.

    I think I am starting to understand that I need to create a sprite for each piece of clothing, pin the sprite to my player when worn and animation it alongside the player.

  • Hello,

    I am creating a tile based RPG which has a modular character design. For example there are lots of different clothing, items and accessories the character can wear or hold.

    Now my character also has 4 directional movement and 8 other animations such as attacking, blocking and rolling.

    Do I need to create a separate sprite for each piece of clothing or items which also includes all the animations of the player?

    This appears to be a lot of work.

  • Hello,

    I think the easiest thing would be to look at this example here: https://editor.construct.net/#open=json

    It's also really easy using Javascript:

    developer.mozilla.org/en-[url=https://www.construct.net]US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse[/url]

    It has a build in JSON.parse method which will turn your JSON string into a javascript object.

  • Hello,

    I have only been using C3 for 2 days now so I am still getting familiar with behaviors and events and wasn't sure how to implement the movement I wanted so I used javascript.

    The movement is very simple 8-directional with no rotation unlike the built in behavior.

    	// get keyboard input
    	if (Keyboard.isKeyDown("KeyD"))
    		Player.velocity.x = 1;
    
    	if (Keyboard.isKeyDown("KeyA"))
    		Player.velocity.x = -1;
    
    	if (Keyboard.isKeyDown("KeyW"))
    		Player.velocity.y = -1;
    
    	if (Keyboard.isKeyDown("KeyS"))
    		Player.velocity.y = 1;
    
    	// move player
    	Player.x += Player.speed * Player.velocity.x;
    	Player.y += Player.speed * Player.velocity.y;
    

    So the movement works as I expected but collisions don't appear to work, do I have to react to collision events using javascript now? Also how can I do so without causing flickering of the character?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I managed to get the desired look in the end with pinning and repositioning the origin.

  • Thank you. This appeared to work nicely for my idle animation which simply bounces.

    My walking animation however is a slight bounce which a rotation with multiple frames. Not all for the frames match up nicely. It would be nice if I could connect the objects on two points, do you know if this is possible?

    For now the origin of the object is connected to the player which is good for position but a second connection would allow for any rotation difference, is this possible?

    Thanks.

  • Hello,

    I have been working with C3 for only a day so apologies if this is a basic question.

    So I have a humanoid character that has some basic animations such as idling and walking. I want to be able to place an object in the players hands and have that object animate with the player.

    How would I go about doing this? Firstly I thought about adding image points to my animation frames and spawning the object at that location but I realised quickly that the objects wasn't connected in anyway. I also looked into the hierarchy and added the object as a child of the player, but it looks static.

    Thanks.