Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> A few quick questions for my first GM fangame
Unspecified
GreenManaphy
  Posted: Aug 17 2008, 12:05 AM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]


I do not have the pro edition.

Im making a game, where you're flying in a plane. I know how to make it scroll, but I dont know how to make it force scroll without taking out the abillity to move left and right. I am no so good with scripts, so could someone help me out? Either

1. Post a script for force scrolling
2. Make a way to make the scenery scroll

thanks in advance.
PMEmail Poster
Top
United States
kremling
Posted: Aug 17 2008, 12:09 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


This should be in the help section, but I'll help you. But you need to explain a little bit better.


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Datt
Posted: Aug 17 2008, 12:12 AM
Quote Post


I'm having a blast
[*][*]

Group Icon
Group: Members
Posts: 1022
Member No.: 4623
Joined: 24-October 07

Status: (0d) [--]


You need to explain it better. I don't understand what you're asking exactly.


--------------------
QUOTE (Mario_6464SMR's reply to Mrs A)
his name's not Halo it's the master chief, and i don't know what "doesn't afraid of anything" means, have u ever played halo before?

PMUsers Website
Top
Unspecified
GreenManaphy
Posted: Aug 17 2008, 12:38 AM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]


Sure. I want a force scroll, so like even though that the screen is always going forward, but the character never goes off screen.

Whenever I try, I can get the screen to scroll, but mario keeps going off sceen
PMEmail Poster
Top
United States
Bacteriophage
Posted: Aug 17 2008, 12:46 AM
Quote Post


injustice anywhere is a threat to justice everywhere
[*][*][*][*][*]
[*][*][*][*][*]
[*][*][KFC]

Group Icon
Group: Members
Posts: 10716
Member No.: 2411
Joined: 31-July 06

Status: (0d) [--]


You mean the sort of thing on Doomships, right?


--------------------
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
kremling
Posted: Aug 17 2008, 12:47 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


Oh, ok.


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
Unspecified
GreenManaphy
Posted: Aug 17 2008, 12:49 AM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]


Yeah, exactly. So can I have help?
PMEmail Poster
Top
Austria
Guinea
Posted: Aug 17 2008, 04:46 AM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (GreenManaphy @ Aug 17 2008, 06:49 AM)
Yeah, exactly. So can I have help?

if the object you want to scroll with the view leaves the view, make it be inside again.

e.g. if your view id is 0, you use:

CODE
if (x < view_xview[0]) x = view_xview[0];

This should keep your object from moving out of the view to the left if placed in the step event or somewhere.
Experiment a little.
PMEmail PosterAOLMSN
Top
Unspecified
GreenManaphy
Posted: Aug 17 2008, 12:42 PM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]


Odd.. Well I cant figure out how to make it always scroll, even if you keep bumping up against the side.Also, When i make him go back, it just moves backwards, and the view goes backwards too.

At this point, I would just be satisfied with a scrolling background...
PMEmail Poster
Top
Austria
Guinea
Posted: Aug 17 2008, 12:59 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (GreenManaphy @ Aug 17 2008, 06:42 PM)
Odd.. Well I cant figure out how to make it always scroll, even if you keep bumping up against the side.Also, When i make him go back, it just moves backwards, and the view goes backwards too.

At this point, I would just be satisfied with a scrolling background...

Put this in an object's creation code. Note: The object in question should only exist ONCE.
CODE
background_hspeed[ insert number of background here ] = insert speed here;
PMEmail PosterAOLMSN
Top
Finland
Ultramario
Posted: Aug 17 2008, 01:13 PM
Quote Post


Dan Dan Dan!
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 11240
Member No.: 2164
Joined: 9-June 06

Status: (0d) [--]


QUOTE (Guinea @ Aug 17 2008, 08:59 PM)
Put this in an object's creation code. Note: The object in question should only exist ONCE.
CODE
background_hspeed[ insert number of background here ] = insert speed here;

You don't need a separate object, if you put that code to room's creation code.


--------------------
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
GreenManaphy
Posted: Aug 17 2008, 01:57 PM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]



___________________________________________
FATAL ERROR in
action number 1
of Create Event
for object Camera:

COMPILATION ERROR in code action
Error in code at line 1:
background_hspeed[ 2 ] = insert speed here;6

at position 39: Assignment operator expected.


Now when you say to put in the bg number, did you mean the name, or the number? also, where do I put the speed.

Srry Im asking so many questions. When I learned how to use gmaker, I knew next to nothing about codes. I'm learning, but I'm still not very good.
PMEmail Poster
Top
Austria
Guinea
Posted: Aug 17 2008, 02:02 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (GreenManaphy @ Aug 17 2008, 07:57 PM)
___________________________________________
FATAL ERROR in
action number 1
of Create Event
for object Camera:

COMPILATION ERROR in code action
Error in code at line 1:
background_hspeed[ 2 ] = insert speed here;6

at position 39: Assignment operator expected.


Now when you say to put in the bg number, did you mean the name, or the number? also, where do I put the speed.

Srry Im asking so many questions. When I learned how to use gmaker, I knew next to nothing about codes. I'm learning, but I'm still not very good.

>_> You insert the speed JUST where I said you should. You take away the "insert your speed here" and put in your speed instead. Easy as that.
PMEmail PosterAOLMSN
Top
Unspecified
GreenManaphy
Posted: Aug 17 2008, 02:17 PM
Quote Post


New User


Group Icon
Group: Members
Posts: 6
Member No.: 5635
Joined: 17-August 08

Status: (0d) [--]


okay thanks. I think I got it to work.
PMEmail Poster
Top
Unspecified
Overbound
Posted: Aug 17 2008, 02:33 PM
Quote Post


New User


Group Icon
Group: Members
Posts: 9
Member No.: 2072
Joined: 7-May 06

Status: (0d) [--]


Your best bet is just to make a moving background there's a speed option in the room background tab you can use for that. Then just use time lines or alarms (are time lines available without pro?) to create your level.


--------------------
user posted image
Check Out the New Sage Demo
PMEmail Poster
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.0879 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.65 ]