# Flygonair

Member Since 13 Mar 2011
Offline Last Active Apr 03 2013 11:12 PM

### In Topic: How do I use variables with percentages?

28 January 2013 - 04:03 PM

I think you guys get what I mean, but to make it a bit clearer:

if global.spellpower = 10
and the base damage = 100
then it adds 10% of the base damage to the total damage
so the total damage = 110

I'm going to test out what you guys said now

### In Topic: Any way to make this script smaller?

23 December 2012 - 09:13 PM

Oh, that's simple, thanks guys!

### In Topic: Know at what position the mouse is clicking

14 December 2012 - 10:12 AM

Ah, thanks a lot guys! It works now!

### In Topic: Walk out of room1 at the left side....

14 December 2012 - 07:48 AM

1. Width and Height of the rooms are 2000x2000.2. About 592.3. The player's X origin is 20

Ok, you have just confirmed what I suspected previously. The rooms in the tutorial are only 640 wide, I had the WarpX set to 620 in the LeftExit Object.So, open the LeftExit object, then open the code for Collision with Player object and change where it says WarpX=608; Change the number using the following formula: room_width - (player's sprite_width + player's sprite x_offset)So if your room width is 2000, Your sprite width is 64, and X origin 20, you would end up with 2000 - (64+20) = 1916 for WarpX.

Oh, I see! Yeah, it works now, thanks! And I assume it's the same for TopExit, only with Y?

### In Topic: Walk out of room1 at the left side....

14 December 2012 - 06:55 AM

I made the rooms the same size, and now the problem only happens when going from the right room to the left, but when I go from the left room to the right, it works fine.

Some questions to help get to the bottom of this: 1. What is the width of your rooms?2. At what x coordinate does the player end up when going from right to left? 3. Is your player sprite's xorigin something other than 0?

1. Width and Height of the rooms are 2000x2000.