kristithechocobo's Forum Posts

  • Hey guys, I'm working out the kinks in my game Star Catcher and it runs okay on my computer but when I test it out on CocoonJS the frame rate can go from 60 FPS to 4 FPS for a few seconds.

    I have WebGL enabled, I'm using the CocoonJS physics, and I have the CocoonJS object in my project.

    I think this might be a memory issue as I have 24 events (which I am trying to group together) and the memory use is 25.7 mb so yeah it's a bit on the biggish side. Also my layout is 1920x1080 pixels and I also need to figure out some sort of ratio scale so it fills the screen properly because when i test it in CocoonJS there's this white bar at the bottom which I initially thought would eventually be filled in with ads or something.

    I wasn't able to include my Capx file due to it being a smidge over 2 MB.

    Please help! Thanks!

  • The way I have done this is in the past is to make the falling objects have a 'bullet' behaviour attatched. Set up all the parameters so that the objects fall the way / direction you want them to, but under the 'speed' or parameter, make a variable called 'Speed'. (So under the events, have an event that is something like "On 'object to catch' created" set speed to "speed". That way, you can manipulate the speed at run time through algorithms that are fairly simple, such as "If score > 250, speed = 250"

    If you were going to event that, (and assuming your score is a global var), you'd make an event under system;

    "compare variable" and define what range of score you want for a particular speed (e.g between 250 and 500), and then have that even set the variable 'speed' to the speed you would like.

    Hope that helps and isn't too garbled!

    It's not too garbled but I do get a little bit of a deer in headlights without visuals XD.

  • I'm making a "catch stuff as it falls game" and I was wondering how I could speed the falling up say every 250 points or so in an attempt to make the game harder as each bonus minute is rewarded.

  • Okay will do.

    Edit:

    Actually, how an I loop this?

  • I was able to make it work I just had to reword a few things.

  • I'm using the iphone 4s.

    My game downloads at 1.4 mB and memory usage is 25.7mb

    WebGL is enabled

    my layout is 1920x1080 pixels

  • Okay the image is appearing now is there a way where I can make it vanish after say 4 seconds but can be seen again at the cost of 5 seconds?

  • I'm testing a game for moblie in the CocoonJS ludei app and sometimes it lags like crazy and other times it runs normally then lags to almost 1 fps. Can anyone help me out on this? And are there other ways for me to test on an iPhone until I am able to purchase an Android tablet?

  • I'm using this but the time goes over 9000 when I get to 200 points.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay I just added this and I'll see if it works. thank!

  • I'm making a game that lasts one minute but if the player reaches 200 points they get an extra minute of game play. I think the variable I need is a greater than or equal to 200 but I'm having a little trouble navigating the event sheet. Images will be greatly appreciated.

  • Okay, now is there a way to restrict it to just moving from side to side?

  • This is for my sandwich game again, I need to figure out how to format the touch event in a way where you can touch the slice of bread at the bottom of the screen and drag your finger across the screen to make it move.

  • Thanks! I'll let you know if it works, now another question how do I manage with an incorrect ingredient? For example, the prompted sandwich is a Peanut butter and grape jelly how do I make the game end if they get Strawberry Jelly or bacon?

  • I'm making a touch screen game where you're making a sandwich by catching falling ingredients.

    In the game you are given an image that prompts you to make the shown sandwich which is shown for a few seconds and then vanishes and the sandwich ingredients begin to fall from the top of the screen.

    I know I might need to make several possible sandwich pictures and it should be on it's own layer, what I need to know is how can I have the image pop up randomly and does it need to be a tiled background or a sprite?

    Thanks!