Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> I need a TGF engine for Pokemon movement, If someone would be so kind
Canada
OrangeNova
Posted: Jul 26 2006, 05:54 PM
Quote Post


Ahoy
[*][*][*][KFC]

Group Icon
Group: IRC Operators
Posts: 6117
Member No.: 2347
Joined: 17-July 06

Status: (0d) [--]


I need the Movement engine from the pokemon games in TGF for a game i'm making, Credit will obviously be given, Thanks in advance.


--------------------
user posted image
user posted imageuser posted imageuser posted image
PMEmail PosterAOLMSN
Top
United States
Xgoff
Posted: Jul 26 2006, 06:01 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


you mean something like this?


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
OrangeNova
Posted: Jul 26 2006, 06:06 PM
Quote Post


Ahoy
[*][*][*][KFC]

Group Icon
Group: IRC Operators
Posts: 6117
Member No.: 2347
Joined: 17-July 06

Status: (0d) [--]


Yes! Except it's a little faster.

...do you have a version in TGF?


--------------------
user posted image
user posted imageuser posted imageuser posted image
PMEmail PosterAOLMSN
Top
United States
Xgoff
Posted: Jul 26 2006, 06:20 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Ishida @ Jul 26 2006, 05:06 PM)
Yes! Except it's a little faster.

...do you have a version in TGF?

no but I typed the code up

CODE

You need 4 sensor objects (eg. "Sensorup" "Sensordown" "Sensorleft" "Sensorright")

Always
--> Set X position of "Sensorup" to: X Left("Player")
--> Set Y position of "Sensorup" to: Y Top("Player") - 16
--> Set X position of "Sensordown" to: X Left("Player")
--> Set Y position of "Sensordown" to: Y Bottom("Player")
--> Set X position of "Sensorleft" to: X Left("Player") - 16
--> Set Y position of "Sensorleft" to: Y Top("Player")
--> Set X position of "Sensorright" to: X Right("Player")
--> Set Y position of "Sensorright" to: Y Top("Player")

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Right Arrow" is pressed
X "Sensorright" is overlapping a backdrop
--> Set Alterable Value A of "Player" to: 16
--> Set direction of "Player" to: 0

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Left Arrow" is pressed
X "Sensorleft" is overlapping a backdrop
--> Set Alterable Value A of "Player" to: -16
--> Set direction of "Player" to: 16

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Up Arrow" is pressed
X "Sensorup" is overlapping a backdrop
--> Set Alterable Value B of "Player" to: 16
--> Set direction of "Player" to: 8

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Down Arrow" is pressed
X "Sensordown" is overlapping a backdrop
--> Set Alterable Value B of "Player" to: -16
--> Set direction of "Player" to: 24

--------------------------------------------------

Alterable Value A of "Player" > 0
--> Subtract: 1 from Alterable Value A of "Player"
--> Set X position of "Player" to: X("Player") + 1

Alterable Value A of "Player" < 0
--> Add: 1 to Alterable Value A of "Player"
--> Set X position of "Player" to: X("Player") - 1

Alterable Value B of "Player" > 0
--> Subtract: 1 from Alterable Value B of "Player"
--> Set Y position of "Player" to: Y("Player") + 1

Alterable Value B of "Player" < 0
--> Add: 1 to Alterable Value B of "Player"
--> Set Y position of "Player" to: Y("Player") - 1


you'll have to change the 16's in the top section if your grid is different, and it can be sped up if you change all the 1's in the bottom section

EDIT: I MADE AN ERROR IN THIS BUT IT'S FIXED NOW soveryhappy.gif

This post has been edited by Xgoff on Jul 26 2006, 06:39 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Draco Icebane
Posted: Jul 26 2006, 06:22 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (Xgoff @ Jul 26 2006, 03:01 PM)
you mean something like this?

Slightly. That's just tile-based movement.

Pokemon is a little different -- when you tap a direction besides the one you are facing, you turn to face that way but don't walk that way unless you tap it again. Exception: if you move right, but there's a wall there, you go bump and don't move. If you then move in a direction without a wall, you'll move that way immediately
PM
Top
United States
Xgoff
Posted: Jul 26 2006, 06:23 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 26 2006, 05:22 PM)
Slightly. That's just tile-based movement.

Pokemon is a little different -- when you tap a direction besides the one you are facing, you turn to face that way but don't walk that way unless you tap it again. Exception: if you move right, but there's a wall there, you go bump and don't move. If you then move in a direction without a wall, you'll move that way immediately

oh well

EDIT: but you reminded me that I totally forgot about adding direction actions dfja

This post has been edited by Xgoff on Jul 26 2006, 06:26 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
OrangeNova
Posted: Jul 26 2006, 06:27 PM
Quote Post


Ahoy
[*][*][*][KFC]

Group Icon
Group: IRC Operators
Posts: 6117
Member No.: 2347
Joined: 17-July 06

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 26 2006, 06:22 PM)
Slightly. That's just tile-based movement.

Pokemon is a little different -- when you tap a direction besides the one you are facing, you turn to face that way but don't walk that way unless you tap it again. Exception: if you move right, but there's a wall there, you go bump and don't move. If you then move in a direction without a wall, you'll move that way immediately

Yeah, But it's not for a pokemon game, pokemon is just the first game that came to mind that had the movement i wanted.


--------------------
user posted image
user posted imageuser posted imageuser posted image
PMEmail PosterAOLMSN
Top
United States
Xgoff
Posted: Jul 26 2006, 06:36 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


of course if someone DID need pokemon movement, then they could add:

CODE
"Up Arrow" is pressed
--> Set direction of "Player" to: 8

"Down Arrow" is pressed
--> Set direction of "Player" to: 24

"Right Arrow" is pressed
--> Set direction of "Player" to: 0

"Left Arrow" is pressed
--> Set direction of "Player" to: 16


And replace that middle part with:

CODE
Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Right Arrow" is pressed
+ Direction of "Player" is = 0
X "Sensorright" is overlapping a backdrop
--> Set Alterable Value A of "Player" to: 16
--> Set direction of "Player" to: 0

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Left Arrow" is pressed
+ Direction of "Player" is = 16
X "Sensorleft" is overlapping a backdrop
--> Set Alterable Value A of "Player" to: -16
--> Set direction of "Player" to: 16

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Up Arrow" is pressed
+ Direction of "Player" is = 8
X "Sensorup" is overlapping a backdrop
--> Set Alterable Value B of "Player" to: 16
--> Set direction of "Player" to: 8

Alterable Value A of "Player" = 0
+ Alterable Value B of "Player" = 0
+ Repeat while "Down Arrow" is pressed
+ Direction of "Player" is = 24
X "Sensordown" is overlapping a backdrop
--> Set Alterable Value B of "Player" to: -16
--> Set direction of "Player" to: 24


That should work

EDIT: fixed a bad error in my last post oops

This post has been edited by Xgoff on Jul 26 2006, 06:39 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
OrangeNova
Posted: Jul 26 2006, 07:38 PM
Quote Post


Ahoy
[*][*][*][KFC]

Group Icon
Group: IRC Operators
Posts: 6117
Member No.: 2347
Joined: 17-July 06

Status: (0d) [--]


Ok i put it in exactly as you said, and it's only letting me move up when i press down.


--------------------
user posted image
user posted imageuser posted imageuser posted image
PMEmail PosterAOLMSN
Top
Unspecified
Draco Icebane
Posted: Jul 26 2006, 07:40 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (Ishida @ Jul 26 2006, 04:38 PM)
Ok i put it in exactly as you said, and it's only letting me move up when i press down.

That sounds like one of Xgoff's engines to me, yeah.
PM
Top
Canada
OrangeNova
Posted: Jul 26 2006, 07:45 PM
Quote Post


Ahoy
[*][*][*][KFC]

Group Icon
Group: IRC Operators
Posts: 6117
Member No.: 2347
Joined: 17-July 06

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 26 2006, 07:40 PM)
That sounds like one of Xgoff's engines to me, yeah.

I fixed the up when down part.. + was - and Vise versa. But i can't move left, up or right


--------------------
user posted image
user posted imageuser posted imageuser posted image
PMEmail PosterAOLMSN
Top
United States
Xgoff
Posted: Jul 26 2006, 08:21 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


got it to work

EDIT: In your FACE Draco >:(

This post has been edited by Xgoff on Jul 26 2006, 08:24 PM

Attached File ( Number of downloads: 7 )
Attached File  pokeengine.gam


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Draco Icebane
Posted: Jul 26 2006, 08:28 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (Xgoff @ Jul 26 2006, 05:21 PM)
EDIT: In your FACE Draco >:(

You asked for help on some chatroom
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0772 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 4.64 ]