valkyriegames's Recent Forum Activity

  • Hi Ashley,

    I'm hesitant to link the capx, but I can send it to you via email. Is there an email I can send it to?

    Cheers!

  • Hi there,

    I seem to have hit a bug in r92 for the for each loop. My code is as shown below:

    <img src="http://valkyriegames.net/c2bugscreens/youapp_problem.png" border="0" />

    From the code I would have expected if I spawned another instance of the GiverUnit object that the new object would also move. This is not the case. Only the original object that was on the screen (the first object is not spawned with a system.spawn()).

    It appears that the line of code with GiverUnit.SetX is only setting the X for the original object.

    Any help would be much appreciated.

    Cheers,

    Dengke

  • rexrainbow Great thanks for the pointer rex! That looks really handy too. Cheers!

  • 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!

  • 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 ;)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

valkyriegames's avatar

valkyriegames

Member since 27 Feb, 2012

None one is following valkyriegames yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies