# Thaisa

Member Since 22 Mar 2010
Offline Last Active Jul 07 2012 03:57 PM

### In Topic: Tile Collisions

25 June 2012 - 09:58 AM

~(64-1) = ~\$3f = \$ffffffc0 (where ~ means bitwise-negate)

But if you don't understand binary tricks, you can just go back to the good old division, round and multiplication tricks.

`Y = (Y div 64) * 64;`

Hi,

So I will need "68" in the \$fffffffd0 notation?
Do you perhaps know any converter or so?

Well, I think I need 68 because:

- The tile size is: 32x32
- The character size is: 64x64 (well, a bit smaller, so it could fit in a gap between 2 (32x32) blocks?

So to check or collision under the player, it has to be y = 68 right?

Then I need that in the \$fff notation.
I'm sorry, I'm not good at maths at all, and when I do: (68 div 64) * 64 it just returns 68 again, and not sure how to set that in the notation anyway.

Thank yo!

### In Topic: Tile Collisions

24 June 2012 - 05:07 PM

I've tried hexa decimal converters but that isn't capable of making that number right?

### In Topic: Captcha in GM HTML5

11 November 2011 - 04:23 PM

Putting random words in unreadable text isn't a good spambot protection method as it mostly just annoys real people. I was on a website once that had what seemed like a randomly generated maze and you had to make it to the other side to validate the fact you're human. A few better alternatives to captcha.

Images, take a full screenshots of things out your game and get the players to identify them.

Sounds, say something unusual such as "I love to drink grey apple juice." and have the player type it out.

Have three moving boxes, two red, one green and tell the player to tick the green one.

Of course, none of these are spambot proof, but then again, captcha isn't extraordinarily effective either.

Hi,

The boxes should work.

Any other creative solutions?

Thanks

### In Topic: At certain positions ( random )

12 May 2011 - 05:54 PM

Hi...

do you mean like power up can be created anywhere (x) as long as it is 16 aligned?

try this:

mmm = instance_create(0,0,obj_powerup)
with mmm x = (irandom(33) * 16)

-Kid

I have one problem though, with irandom, i cannot seem to set bounds.
The area in which i want the powerups to fall in is:
x > left.x
x < right.x

So:
I have to align:
instance_create(random_range(round(sidetoleft.x),round(sidetoright.x)),-1200,obj_box)

Also, if I would like to have the y creation position at: y = -1200

I do this right:

mmm = instance_create(0,-1200,obj_box)
with mmm x = (irandom(33) * 16)
with mmm y = -1200

Or is it something else then? (the instance create y value, does not seem to work)

Regards,

### In Topic: At certain positions ( random )

12 May 2011 - 05:51 PM

Hi...

do you mean like power up can be created anywhere (x) as long as it is 16 aligned?

try this:

mmm = instance_create(0,0,obj_powerup)
with mmm x = (irandom(33) * 16)

-Kid

Thank you so much.