humpty's Forum Posts

  • G'day again Guys,

    Personal licence. (release 178 64 bit)

    Issue:

    1) Player object somehow sets invivisble between starting the game and the game fully loading.

    2) Can see in the debugger it's invisible.

    3) Can't find ANYWHERE in the events where I set it as such. ...and I never did set it as such anyway

    Assistance on working out where / how this is being changed please

    Thanks :*

    [ SOLVED -> Resolution (no debugging occured) ]

    If anyone was interested, and read this far through as the title isn't specific about it, it was a bloody FLASH action!

    Somewhere, somehow it ended up being assigned as an action of a completely empty event.

    Once the action was relocated to an event that would actually trigger (e.g. not a blank one) the sprite became visible.

    (I can't even recall what that event used to be before it became blank nor can I work out how it became blank)

    THANKS to those who had a look at the thread

  • Yup!

    Functions were the answer. Thanks Apox Inc

  • 'global values' no instance variables yes.

    I understand from other programming what global variables are though.

    It will be nearly 1/2 the day before I get to look into the functions first. I'll start there then do a search on global values.

  • Sorry Apox Inc :/

    I try to write the question in a way that doesn't require someone to DL something, load it, look through etc.

    I think I will start just uploading capx's though as well.

    For now though I will check out functions. I believe they will be my saving grace as i can pass variables through to them it seems

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Solution: You use functions ...pass along the variables you want via paramaters to a function that generates the enemy and use the paramaters to set it's instant variables

    G'day again guys.

    Unsure if this is a "How do i" or a 'beginners question' so i chose the later because I believe if I had more experience I'd already know the answer:

    I've tried a few things but it's not working right I believe it has to do with identifying the instances.

    Essentially I need to completely clone the Enemy as another instance and then change at least one instance variable of the new clone. (instance variable isn't shown in the below list as I don't see it being an issue.)

    Information:

    Enemies are basically bouncing balls.

    If they hit the ground

    Triger Simulate Jump

    Triger Gravity +10

    Triger JumpStrength -10

    I am attempting to:

    When the bullet hits the (original)Enemy:

    Create Explosion (no problems here)

    Create Enemy(instance#2)

    Set Enemy(instance#2) gravity and jumpstrength to that of (original)Enemy

    Set Enemy(instance#2)scale 0.75 (no problems here)

    Create Enemy(instance#3)

    Set Enemy(instance#3) gravity and jumpstrength to that of (original)Enemy

    Set Enemy(instance#2)scale 0.75 (no problems here)

    Destroy (original)Enemy ..... (I have to do it here because I need to refernece it for the properties

    Destroy Bullet

    I'm ok with not destroying the original Enemy (but changing it's scale) but still having issues with the assigning of the properties.

    Any ideas / tips / direction?

    Thanks in advance :*

  • OMG!

    Thanks heaps for that blackhornet. Where do I send the 40 foot yacht as a gift of my appreciation?

    I knew it would be simple and doubt I'll have this issue again now

    I can't see a method to flag your post specificly as the solution or to give you a 'thumbs up' or 'reputation booster' or similar.

    THANK YOU

  • [ CAPX attached ]

    G'day inquiesco,

    Thanks for the reply and help.

    I truly believed it was me incorrectly using the event sheet so didn't think the capx would have helped. Sorry, it's attached now.

    Variable Case Sensitive: Yes, the text variable is upper case through the entire project.

    Further testing: I have done some more testing and believe that the issue is entirely checking the variable. I just can't see where / how / why its an issue

    I have commented the code in the capx with all comments ABOVE the section they apply to and also used groups and a "START / END" comment to isolate where the issue is ocuring.

    I am now also lead to believe that I have used the event structure correctly and that the issue has nothing to do with the structure for the desired outcome but has everything to do with the wrong condition-checking or an issue I generated in my Instance Variables. ......is that correct?

    Thanks again in advance.

  • ...solution is at bottom of post...

    G'day guys. (my very first question)

    I'm sure this is just a noob issue. I've looked in "[How do I]Frequently asked questions" but don't see anything that appears to have my resolution.

    I have had some issues understanding the 'tree' in the Events page. I did google for that too but didn't get the explination I was looking for.

    I managed to work out plenty of other stuff from google and looking at some example projects. I'm sure this will make perfect sense to me too once it's pointed out.

    Trying to: Trigger actions based on two conditions. (keyboard) + an instance variable. (checked in properties and in debug mode the variable is correct)

    Screen shot:

    [attachment=1:2rasnq1f][/attachment:2rasnq1f]

    Now if this were code I'd expect this to work:

    // Yes I just made things up but i'm sure you'll get the idea.
    if ((keyboard.keypressed == space_key) AND (Player.CanShoot == "YES")){
    	Player.State = "Shoot";
    	spawn (ShootBullet);
    	ShootBullet.angle = 270;
    	// (and so on)
    }
    [/code:2rasnq1f]
    ...or to just put one IF inside the other.
    
    So what am I Noobing up?
    
    last note: I intentionally used a text variable instead of a boolean.
    
    Thanks in advance :*
    
    [b]SOLUTION:[/b]
    
    

    C2 is a bit inconsistent on this: it's because you put quotes around YES in your default CanShoot instance variable (although you didn't for the State=Normal case).

    [attachment=0:2rasnq1f][/attachment:2rasnq1f]

    Removing the quotes from the instance variable of the object resolved the issue.

    Keep the quotes in the conditions of the events sheet

    #2 in the first image posted now functions.

  • Welcome to all the newcomers of the week!

    thanks

    ...and happy developing!

    Thanks again

    Additionally, there are many hosted here on Scirra's website.

    about that ... It's hard to do a tutorial (platform) when the graphics aren't available. Is there a similar set of graphics (but not the same), no matter how bad they may look, that are the same dimensions, sizes and have the same tile counts? I can't even make mock ones because that info isn't provided....that makes doing the whole tutorial hard to do. (I have searched for mock ones without success)

  • Agree with all. Nice game

  • G'day guys,

    Checking out what Construct has to offer.

    [ HISTORY ]

    Artistic ability:

    zero

    Coding:

    BASIC, QBasic, Visual Basic (many moons ago last used VB6)

    VBA (not too strong but I've done what I've had to and still do. Mainly data manipulation)

    PHP (Main focus since 2002)

    A little Javascript thrown in with the web development of HTML and PHP

    Games:

    Nothing to brag about. A few small things in QBasic and VB. a Few small JS things. nothing much. Nothing ever realised to the light of day or general public

    My lack of artistic abillity in any way shape or form has hindered the desire

    Life:

    Married, 5 kids, had my own business.

    I.T. technical background with early on pre-I.T. retail roots.

    I also really like marshmallows. The look the texture the smell the name, not as fond of the taste though.

    [ REASON FOR BEING HERE ]

    A friend saw some web based JS games that I'd done. He has game ideas and artistic ability and we embarked on a game making journey. using Game Maker (which I tried many years ago and didn't care for) because he had already done some stuff with it.

    Long story short, a year later I've made more games (unfinsihed and unreleased) in game maker than he has (which is none) and I've still not seen any art from him.

    [ Yes yes years of similar crap with other people (programs and websites) should have dictated this would be the outcome ].

    Anyway I'm at a stage where I have ideas and have thrown the idea of pretty-art out the window and just want to release some stuff.

    Not trying to make a billion. Not trying to make a hundred. Just trying to make some people feel some joy by playing something I've created or been a part of.

    Enter my first dip into Construct 2 to see if it opens up paths I've not yet had access too.

    Thanks for your time. :*