Need help with warping

Understanding the language, error messages, etc.

Need help with warping

Postby shimmeringpony » Fri Feb 27, 2015 1:39 pm

Hello guys,

I need help with something.

I want to have a warping effect when an event is triggered.

Its like having a vortex in the middle.

How can I do that?
shimmeringpony
 
Posts: 1
Joined: Fri Feb 27, 2015 1:35 pm

Re: Need help with warping

Postby Montiey » Sat Feb 28, 2015 6:14 pm

You could have a rectangle at the center, that when the player is touching, would change the players coordinates or do something else.

In case it's needed, a good way to use the center of the player, and not the top left corner, is by defining the hight and width as variables, and saying something like (player_x + player_width / 2) and (player_y + player_hight / 2)
User avatar
Montiey
 
Posts: 68
Joined: Sat Jan 17, 2015 5:38 pm

Re: Need help with warping

Postby rodot » Sun Mar 01, 2015 7:56 am

What do you mean a vortex in the middle, like if you were going through a wormhole like the ones you find in science fiction games/movies like Stargate or Freelancer ?

Something like this ?
Wormhole_Moving.gif
Wormhole_Moving.gif (216.89 KiB) Viewed 3542 times
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Need help with warping

Postby batteries » Tue May 05, 2015 9:28 pm

Are you talking about something like the intro to GB Pokemon battles or Link to the Past world change?
batteries
 
Posts: 8
Joined: Sun Apr 26, 2015 5:09 pm


Return to Programming Questions

Who is online

Users browsing this forum: No registered users and 68 guests

cron