artsology's Recent Forum Activity

  • I have a simple game: 3 different sprites are spawned and travel off the screen in different directions. Clicking (or touching) the sprite will add 10 points to the global variable "score," while the sprite going "outside layout" will subtract one life from the global variable "lives."

    I'm finding as I test-play the game that both global variables will change value in a way that doesn't reflect what is happening on the screen. For example, 2 sprites may travel off the screen at the same time, but "lives" only gets reduced once. Or I might have scored 50 points from clicking on 5 sprites but my successful click on a 6th sprite takes the score back to 30. I'm not sure how either one of these scenarios is even possible when the events and actions are set properly. Or am I missing something?

    (I was hoping to add a picture of my event sheet, but am a newbie and don't see how to do that)

  • I followed the directions in the link provided by chadorireborn, but am still seeing a problem with games integrated on a responsive website. For example, I built a game which is then integrated into a responsive website using an <iframe> as suggested. It looks and functions perfectly on desktop, and it also works well on tablet. But when I look at it on a phone, the page and the iframe "respond" to the screen size and fit perfectly, but the game inside of the <iframe> thinks its on a bigger screen, so you can only see a little bit of the game and it's not playable.

    What's strange is that the game will scale and fit the phone perfectly if I upload the original index.html file, but once I put that same index.html in the <iframe>, it is too big to see on the phone.

    Has anyone else had - or solved - this problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm trying to fit Construct 2 games into a responsive Bootstrap <div>, but it seems to stop the game from fully loading, so I never see whether it becomes responsive or not. I can't find any tutorials about Construct 2 in responsive sites (where I'm putting it into my own site structure with masthead, navigation, footer, etc.), does anyone have any suggestions?

    I don't want it to be full-screen, but I want it to be 100% width in my responsive <div> which does fill the width of each respective device monitor.

    Thanks in advance for any suggestions.

  • Thanks so much, caiorosisca - I didn't get a chance to try it out until today, but it's working the way I needed. Now what I'm going to try to figure out is how to run an "if" statement off of it, so that if it generates object 1, something happens, but if it generates objects 2-5, then something else happens. I'm going to see if I can figure that out (I have PHP programming experience, but am trying to learn how to apply it within the Construct2 framework).

  • I've been looking all over and can't find anything specific to what I'm trying to do:

    I've created a family of sprites, with 4 good sprites and 1 bad sprite

    My main character is a graffiti artist who wants to spray paint his "tags" on a building

    My character is able to approach the wall, and I want the player to tap the space bar at the point where he will spray paint his tag

    The functionality I'm looking for is: 4 out of 5 times the player taps the space bar, one of his graffiti tags will be placed on the wall - but the 5th time a police officer will arrive to arrest him. It needs to be a random response so that the player never knows when the police officer will arrive.

    I thought I was close with:

    Event: keyboard, when space is down, system picks a random family member instance, with the family members numbered from 1-5

    The action is to then set the position of the random sprite next to the graffiti artist - however, when I run this, all 5 sprites show up every time.

artsology's avatar

artsology

Member since 5 Apr, 2014

None one is following artsology yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies