valkyriegames's Forum Posts

  • Omg thanks. The lack of a debug panel (or any other debug tool) was annoying the hell out of me. Thanks for the code mate! Cheers!

  • Yay thanks Ashley! I'm looking forward to the fix! :D

  • Hi there,

    I was just wondering, is there any chance we'll be able to store objects in to arrays any time soon? It would make some things a whole lot easier!

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there,

    I've been trying to spawn a family object and then refer to it immediately after but it does not work. I have this:

    Every 0.5 seconds -> Spawner.Spawn(Enemy)

                         Enemy.X=1800

    where Enemy is a family containing two sprites Enemy1 and Enemy2.

    Instead of applying the value to only the newly spawned object, it applies it to ALL objects that belong to the family Enemy. This seems inconsistent with how normal objects are dealt with (ie if we replace Enemy with Enemy1 which is a Sprite, it would behave as I want). How can I refer to the newly spawned object?

    Thanks for your help!

  • How about using the distance function to check the distance?

    Distance(instance1.x,instance1.y,instance2.x,instance2.y)

    Where instance1 could be your jet pack and instance 2 could be a starting point. For coin count the number collected and times it by a score you want to give per coin.

    Give it a shot ;)

  • Well its possible that it's because you tell the car sprite to spawn the text so it takes the angle of the car. If you set the angle of the new text to 0 it should be the right way up. Or get System to spawn the text which should make everything okay. Let me know if it works! :D Cheers!

  • Arima Yes exactly, I think an option for objects to interact with only those objects in the same layer would simplify things greatly, and also allow us to make more interesting games with the physics. Implementing it shouldn't be too difficult from what I know. I hope Ashley will have time to add this in to his busy schedule :)

    Your suggestions 1 and 2 I have thought of, but it feels like too much trouble to go to when the physics engine is just there, and is almost everything you need - especially for making everything more realistic! Suggestion 3 is actually a great idea which I hadn't really thought of. It's a little extra trouble and not quite as neat as I would like it but it could work. The game I'm making is for the mobile though so I would like to not have to use so many extra resources. Let's see if Ashley can find some time to add in the functionality we require :)

    aridale Thanks for the suggestion but it'll require a bit too much custom movement than I would like - I also have the problem that the platforms are hills (so slightly rounded!)

  • aridale Sure but there are enemies that are also Platform objects like the player. If they stand on a different layer, if the solids get disabled, they will fall off... so it won't work :(

  • Thanks for the suggestion aridale, but how do you mean? There might be more than one platform object (which could be on a different solid on a different layer to the player) so enabling and disabling them wouldn't work. Unless I've interpreted this wrong!

    Ashley No chance there's a simple option in Construct 2 that'll fix this? Like a "collide only with objects on same layer" event/instance variable? xD

  • Lol only problem with that solution is that I have more than one platform object moving around at a time. So I can't simply enable and disable platforms... ):

  • Hi there,

    I was wondering how I could make platform objects only collide with solids on the same layer. (Note: I might have more than one platform object on the different layers, so simply disabling solids on another layer will not work - the other platform objects will end up falling through). This is because I have a simple platformer game that requires multiple platforms to walk on, one in front of the other in the z direction (simulated by making closer platforms lower (ie with a greater y value). I placed each platform on a separate layer, each as a solid object. Now I tried to create a platform object on the layer closest to the player (ie with the higher y value) but this does not work, because Construct thinks that the player is colliding with the far away platform (lower value of y) because according to y values, the platform object collides with that platform first.

    Is there any way I can make the platform object collide only with solids on the same layer? Or if not, is there any other way I could get this to work? The platforms are actually "rounded" so simply making the platform object change its x or y value will not work.

    Thanks for your help in advance!

    Dengke Sha / ValkyrieGames

  • Ohh really I didn't know there was a TextHeight expression. I will try it out. Thanks! :D

  • Hi Mipey, that's a good idea, except the problem is I can't find out a way to decide how many lines are in the Text. For example, I can count newlines but text wrapping means that more lines are used than there are newline characters. Do you know any easy way to find out the number of lines in a Text object?

    Thanks!

  • Well right now this is what I have:

    <img src="http://www.valkyriegames.net/wip/misc/scrollable_text_required.png" border="0" />

    And the Text portion of the textbox can be seen to the left. Right now after typing enough, the text, because each message is attached to the end, runs past the visible space of the textbox. I was hoping there was a version of the textbox which would let me scroll the text so I can see what's written at the bottom. Preferably the textbox would also shift the text so that the bottom most entry is visible. Will the iScroll plugin help with that?

    Thanks for your help!

  • Haha yes, that would be very handy if Ashley could :D

    The calljs plugin looks very handy! Thanks for the work around! :D