a teleportation power that can teleport anywhere on the screen script help.

Started by megaman30796, January 19, 2011, 05:09:33 am

Previous topic - Next topic

megaman30796

is there a power that can make the player or opponent teleport anywhere they want as long as its in the screen.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

WhiteRose

You want the player to be able to pick the coordinates, then? I could see that leading to some issues, but it's possible. Just have it prompt them for a number for the X-Coordinate and Y-Coordinate, and then call a common event that moves them to that location; make sure that you have a branch that checks that those coordinates are small enough that they'll still be on the map.

LiTTleDRAgo

don't forget about passabilities or player could stuck in tree or walls

megaman30796

thats a problem with impassability.

@white rose: i tried making a boss that teleports anywhere in the field using a common event. the problem is i want the player 2 have the same type of ability but its impossible 2 make it thru common events b'coz i want the player 2 be able 2 use it at any map.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

Starrodkirby86

Quote from: megaman30796 on January 20, 2011, 01:29:29 am
thats a problem with impassability.

@white rose: i tried making a boss that teleports anywhere in the field using a common event. the problem is i want the player 2 have the same type of ability but its impossible 2 make it thru common events b'coz i want the player 2 be able 2 use it at any map.

That's still possible.

Skills and items can launch Common Events too. Simply make a skill that's only usable in Field, and have that skill launch the teleportation common event.

You would still need a few other factors though. As WhiteRose said, you need some branch that would know the max dimensions of each map (Two variables that are max.x and max.y maybe?), and you need to make sure the teleporter ONLY leads to tiles YOU want the player to land (i.e. not a wall or something). That's a whole other story, maybe? :V:

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




megaman30796

"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

megaman30796

"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

Starrodkirby86

My bad. xp

...You know I just realized that the player has the choice of teleporting somewhere...xD

Well, I don't know how you can tell if a tile is a wall or something through eventing... (I'm assuming this can be easily done with scripting, I just don't know what to do xD)

For the variable and maximum dimension case though... Please note that this method might not be the most optimized way of doing this, but it's just my way. Perhaps there's better methods to tackling this on, as my experience with RMXP has been rather ancient.

I'm not screenshotting this since, well, I don't have a common event. :V

For every map, there would be a Parallel Process event that will set the variables for max.x and max.y. max.x and max.y will be the dimensions of each map (So for a 20x15 map, max.x and max.y will be 20 and 15 respectively). After those variables have been set, on the Common Event screen...

Note that the Common Event screen should have no triggers whatsoever. It'll be launched from a Skill, so using the skill will call the Common Event anyway, right?

Anyway, what you first want to do...

Make a loop. This will be if the player decides to be a herpderp and have coordinates that are OVER the max.x and max.y or the tile's going to fall on a wall.

Loop
[Input Number... for player.x
Input Number... for player.y

(player.x and player.y will be the player's choice for what place they want to go to.)

Conditional Branch checking if player.x and player.y is bigger than max.x and max.y:
If yes then
Message: It's too big, blah blah.
Else
Conditional Branch checking if player.x and player.y is not landing on a wall tile:
(This one is difficult. The only thing I can think of would be done through a script. My idea is this. This script snippet checks if a certain tile in the map scene has a certain terrain tag. If it does, then it yields true; if not, it's false.)
If yes then
Message: You can't access that spot.
Else
Break Loop] (Break Loop will skip Repeat Above and move on to the next Event command)
Repeat Above (This is just what the Loop would do if player.x and player.y were too big or fell on a wall tile)

Then with a Call Script for what Transfer Player is... (That's inside the Script Editor somewhere in the Game_Interpreter)
Blah blah blah blah. I think we may need to set the Map ID to another variable to accommodate for this too.




It can be done with common events, but I think you need scriplets, like call scripts and all that. :/
It can probably be done with Eventing, but not as convenient though. O_O

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




megaman30796

wow! The game i'm  making is gonna hundreds of maps.

there's so much work even 4 1 single map. i think i'll drop this idea.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

Starrodkirby86

It might be an interesting idea to do for maybe one dungeon, puzzle room, or something else.

But I think for the whole game, it'd be pretty game-breaking in general; skipping around from place to place in an instant.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




megaman30796

i just wanna make something like Zanzoken From DBZ. on the other hand, my mapping skills sucks. So, there aint any real dungeon. Seriously.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

The Niche

I might make an actual event system out of this at some stage. Not for a long time though.
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Spaceman McConaughey

Quote from: megaman30796 on January 26, 2011, 04:37:43 am
i just wanna make something like Zanzoken From DBZ. on the other hand, my mapping skills sucks. So, there aint any real dungeon. Seriously.


This game's gonna suck, then. You can have awesome gameplay and story(which I doubt you'd have, as well), but if the maps suck like no one would believe, it's an instant turn-off. At least for me. But what I can't contemplate is why some people suck at mapping; it's really easy to learn and master. Just quit being lazy and do a bunch of test maps with each type of tileset until you get good.

megaman30796

hello! I'm Making a modern game with over tenths of hours of gameplay!

modern games dont need dungeons. i dont like 2 bore the players with endless mazes and just get get 2 the battle.

i'm actually making 2 games at once. the first game is just thrilling. i let my cousin try and the first 10 minutes is boring b'coz it's to let u get used 2 the controls. the next 45 minutes was just non-stopping battle. NO REST! SERIOUSLY! BATTLE! BATTLE! BATTLE! until i made a place that u can rest in the game. i tried it out and i even got tired from it.i play MH until 9 star solo so im used 2 thrills and i never thought a RMXP game could worn me out.

my second game is actually based on a game i and my friends played a few years ago(i was still below 10yrs old). the game don't actually exist.
i invented it(dont ask how) and i didnt know RMXP even exist then. this game took many years to play and it never reached it's peak. my friend played almost everyday for a few years b;coz it really good and the story is just damn good. i have like the best imagination in my school(im not bragging).but this game im creating in RMXP wont be even 10% as great as the original coz ii forgot 95% of the events and storyline and playing it with low graphics really suxx!

i cant script and i dont know many of the rmxp functions but im creative. i can make the bosses really something super without the use of combos, common events and complicated scripts.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

megaman30796

starrod, pls lock this topic. the people here r very jealous that they have 2 peddle on the streets and i dont
@starrod: u r always helping me starrod, so thanks!
@every1else: Eat Shit!
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

Subsonic_Noise

Quote from: megaman30796 on January 26, 2011, 08:56:36 am
starrod, pls lock this topic. the people here r very jealous that they have 2 peddle on the streets and i dont

Wow. I don't even have to mess with this sentence. Sig'd.

Ryex

well mega man considering you've reported this topic for unsavory reasons and you've requested a lock when you could lock it your self (you can lock your own topic, did you know that?) I think I'll lock this topic before you make an even bigger fool of your self. if at a future time you believe that this topic could do something productive please pm a mod to unlock it again.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

I deleted the post that was reported already.
And I thought somebody locked this already. In any case, it is now locked.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ryex

Quote from: Blizzard on January 26, 2011, 06:18:43 pm
I deleted the post that was reported already.

perhaps that is why I couldn't find a post worth reporting other than genuine criticism  :p
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />