Crazy Golf iOS

RandomJibberish

  • Posts: 82
Let the port begin.



Levels are being remade to fit the smaller screen and not be too small and fiddly, and physics has been adjusted from the flash version to feel more realistically like Golf - the ball rolls properly now.

Features on the agenda:
Actually getting 18 holes done

If you want status updates slightly less interesting and more frequent than the ones in this thread, you can check my twitter. Or something.

« Last Edit: December 01, 2011, 04:37:55 pm by RandomJibberish »

Dizko

  • *
  • Posts: 451
Awesome, looking forward to this one!

Rhys

  • Posts: 1046
Lines drawn on iOS don't have rounded ends like they do in flash, so I'll have to manually make the start of the arrows prettier.
This is going to be done after v1 I think.
The angle of the lines from the ball to the cursor changes with the angle of the ball itself - this doesn't happen on flash, so it's probably an issue with iStencyl. Switching to screen space doesn't work, perhaps?
Actor drawings are positioned and scaled relative to the actor itself...

...oh I just realised that's my problem here.

Anyways I think this is going to be backported to flash. Scene drawing should go around this, though.

The behavior that checks if the ball is in the hole doesn't work on iOS and causes console spam ("is in Region: Actor does not exist.")
I don't think this has been tested.

Jon

  • *
  • Posts: 17524
Several games I test regularly use isInRegion - what sort of logic are you using for that?

JensWinterstein

  • *
  • Posts: 432
Very nice, RJ. Please finish all 18 maps at least for this version :P
Looking forward to stencyl-golfing on my iPod.
Get 100 Chambers for Android / iOS
Get Cubus Velox for Android / iOS or play it on Flash

- Portfolio

RandomJibberish

  • Posts: 82
This is the logic I'm using for detecting when the ball is in the hole: I'm unsure if I'm doing it right, but it works fine on flash...



Player and Region are attributes.

For the second issue, I am using a "switch to scene space" block before drawing the lines, but by the looks of it it isn't working.

« Last Edit: October 02, 2011, 11:36:36 am by RandomJibberish »

Jon

  • *
  • Posts: 17524
I'll probably need to see the game via e-mail to diagnose it.

Aasimar

  • *
  • Posts: 605
I think his code is good, but the tell block don't works on iOS : http://community.stencyl.com/index.php/topic,4000.0.html

I think your code can't finish the steps.

Jon

  • *
  • Posts: 17524
That topic has a fix for that issue if you'd like to try.

RandomJibberish

  • Posts: 82
Messaging can't be the reason, as the hit counter uses messaging and works perfectly. The patch in that thread doesn't seem to have helped with that issue, although now the arrow's lines' starts are also misplaced - looks like positioning also ignores the "Switch to Scene space" block now.

Jon: Emailing the game over now so you can take a look.

Jon

  • *
  • Posts: 17524
The cause (and don't know why) is that the player actor attribute isn't set.

RandomJibberish

  • Posts: 82
Mmm, it looks like it ought to be set for me, and works perfectly in flash. I'll try adjusting the logic to avoid using the actor attribute at all in a bit.

Jon

  • *
  • Posts: 17524
No worries - I fixed it, though I'm still scratching my head over how/why it happened. The attribute IS set, but for some reason, the way we set it is not good, only for actor attributes. It's not a problem for other attribute types.

Use the attached engine. It also fixes your drawing issue (was a landscape rotation thing).


RandomJibberish

  • Posts: 82
Aaand the menu's pretty much working and pretty, with new shiny retina buttons. You can also swipe up to get to the second page of the menu, so it can actually go beyond 9 levels now. Yay.



Next I'll get going shining everything else up for retina~

More bugs and issues and things:
The Swipe blocks don't seem to do anything in flash
Text that I've centered on the buttons is a little lower than it should be in the simulator - the "Get height for current font" block doesn't seem to be giving the right values.
The font on the buttons is at half size I turn the simulator up to retina - This one is weird, because the other two fonts are fine. I'll mess around with its properties and see if there's anything that's different.

Jon

  • *
  • Posts: 17524
Swipe is an iOS only feature. If you want to remake it in Flash, you'll have to roll your own (but I recommend not since it's a strange way to scroll on the computer).

How "off" is the reported height?