PRINCIPIOS FUNDAMENTALES
1. Enfoque gramatical Se aprende a escribir con el conocimiento y el dominio de la gramática del sistema de la lengua
2.7.2. Roles de maestro y de alumno
. . ng to the date. e te. It mplete years as a fraction.
fraction.
s.
date_inc_month(date,amount)
Returns a new date that is amount months after t indicated date. amount must be an integer number.date_inc_week(date,amount)
Returns a new date that is amount weeks after the indicated date. amount must be an integer number.date_inc_day(date,amount)
Returns a new date that is amount days after the indicated date. amount must be an integer number.date_inc_hour(date,amount)
Returns a new date that is amount hours after th indicated date. amount must be an integer number.date_inc_minute(date,amount)
Returns a new date that is amount minutes after indicated date. amount must be an integer number.date_inc_second(date,amount)
Returns a new date that is amount seconds after the indicated date. amount must be an integer number.date_get_year(date)
Returns the year corresponding to the date.date_get_month(date)
Returns the monthdate_get_week(date)
Returns the week of the year corresponding tdate_get_day(date)
Returns the day of the month corresponding to thedate_get_hour(date)
Returns the hour corresponding to the date.date_get_minute(date)
Returns the minute corresponding to the date.date_get_second(date)
Returns the second corresponding to the datedate_get_weekday(date)
Returns the day of the week corresponding to the datedate_get_day_of_year(date)
Returns the day of the year correspondidate_get_hour_of_year(date)
Returns the hour of the year corresponding to th date.date_get_minute_of_year(date)
Returns the minute of the year corresponding to the dadate_get_second_of_year(date)
Returns the second of the year corresponding to the date.date_year_span(date1,date2)
Returns the number of years between the two dates. reports incodate_month_span(date1,date2)
Returns the number of months between the two dates. It reports incomplete months as adate_week_span(date1,date2)
Returns the number of weeks between the two date It reports incomplete weeks as a fraction.date_day_span(date1,date2)
Returns the number of days between the two dates. It reports incomplete days as a fraction.date_hour_span(date1,date2)
Returns the number of hours between the two dates. It reports incomplete hours as a fraction.action.
smaller, equal, or larger than the second value. ng
rns -1, 0, or 1 depending on whether the first is smaller, equal, or
at for the system.
t
-
date_minute_span(date1,date2)
Returns the number of minutes between the two dates. It reports incomplete minutes as a frdate_second_span(date1,date2)
Returns the number of seconds between the two dates. It reports incomplete seconds as a fraction.date_compare_datetime(date1,date2)
Compares the two date-time values. Returns -1, 0, or 1 depending on whether the first isdate_compare_date(date1,date2)
Compares the two date-time values only taki the date part into account. Returns -1, 0, or 1 depending on whether the first is smaller, equal, or larger than the second value.date_compare_time(date1,date2)
Compares the two date-time values only taking the time part into account. Retularger than the second value.
date_date_of(date)
Returns the date part of the indicated date-time value, setting the time part to 0.date_time_of(date)
Returns the time part of the indicated date-time value, setting the date part to 0.date_datetime_string(date)
Returns a string indicating the given date and time in the default formdate_date_string(date)
Returns a string indicating the given date in the default forma for the system.date_time_string(date)
Returns a string indicating the given time in the default format for the system.date_days_in_month(date)
Returns the number of days in the month indicated by the date-time value.date_days_in_year(date)
Returns the number of days in the year indicated by the date time value.date_leap_year(date)
Returns whether the year indicated by the date-time value is a leap year.date_is_today(date)
Returns whether the indicated date-time value is on today.Game play
There are a large number of variables and functions that you can use to define the game play. These in particular influence the movement and creation of instances, the timing, the room, and the handling of events.
Information on game play can be found in the following pages: Moving Around Motion Planning n es ances ng Events
us Variables and Functions Paths Collision Detectio Instanc Deactivating Inst Timing Rooms Score Generati Miscellaneo
Moving around
Obviously, an important aspect of games is the moving around of object instances. Each instance has two built-in e position of the instance. (To be precise, they indicate the place where the origin of the sprite is placed. Position (0,0) is the top-left corner of the room. You can change the position of the instance by changing
is
tical speed (vspeed). Both are indicated in pixels per step. A positive horizontal speed means a motion to the right, a negative horizontal speed mean a motion to the left. Positive vertical speed is
bitrary motion. (Internally this is changed into values for
hspeed and vspeed.) Also there is the friction and the gravity and gravity direction. Finally, there is the function
x
Its x-position. variables x and y that indicate thits x and y variables. If you want the object to make complicated motions this is the way to go. You typically put th code in the step event for the object.
If the object moves with constant speed and direction, there is an easier way to do this. Each object instance has a horizontal speed (hspeed) and a ver
downwards and negative vertical speed is upwards. So you have to set these variables only once (for example in the creating event) to give the object instance a constant motion.
There is quite a different way for specifying motion, using a direction (in degrees 0-359), and a speed (should be non- negative). You can set and read these variables to specify an ar